Ever wondered how you could generate the IndexPath row from a Function not related to tableview?
UITableViewCell *clickedCell = (UITableViewCell *)[[sender superview] superview];
NSIndexPath *clickedButtonPath = [_tableView indexPathForCell:clickedCell];
int row = [clickedButtonPath row];
NSLog(@"%i",row);
Comments are closed.