CGPoint buttonPosition = [sender convertPoint:CGPointZero toView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:buttonPosition];
NSLog(@"index: %ld",(long)indexPath.section);
NSLog(@"index: %ld",(long)indexPath.row);
No comments:
Post a Comment