Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save conscientiousness/95ce3d8c04d82c2169e2bd2ba0e9b7a9 to your computer and use it in GitHub Desktop.
Save conscientiousness/95ce3d8c04d82c2169e2bd2ba0e9b7a9 to your computer and use it in GitHub Desktop.
Get IndexPath from cell button
CGPoint center= sender.center;
CGPoint rootViewPoint = [sender.superview convertPoint:center toView:self.myTableView];
NSIndexPath *indexPath = [self.myTableView indexPathForRowAtPoint:rootViewPoint];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment