I have searched stackoverflow to find an answer but i can not find one.
I have an uibutton in an uitableviewcell of an uitableview.
I tap on it. When i tap on it a function is triggered. Inside the function i am trying to get the indexpath of the uitableviewcell. The indexpath should be the one where the button i pressed previously exists. The function is triggered but i get a nil value when i access indexpath.
this is the code i use
NSIndexPath *indexPath = [walltablefriends indexPathForCell:(UITableViewCell*)[[sender superview] superview]];
but it is not working it is giving me ‘nil’ . Any help appreciated!
The table was empty as dreylin mentioned in a comment! Thanks man!