Created
July 16, 2015 18:00
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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