Skip to content

Instantly share code, notes, and snippets.

@ozzieperez
Created July 16, 2015 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozzieperez/55466d0a9731af7406a2 to your computer and use it in GitHub Desktop.
Save ozzieperez/55466d0a9731af7406a2 to your computer and use it in GitHub Desktop.
Gets the indexPath of a cell based on the coordinate point of the event
public NSIndexPath GetIndexPathFromCellEvent(object sender)
{
var point = ((UIButton)sender).ConvertPointToView(((UIButton)sender).AccessibilityActivationPoint, TableView);
var indexPath = TableView.IndexPathForRowAtPoint(point);
return indexPath;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment