UITableViewCell indexPath crash in iOS7

后端 未结 6 2038
不知归路
不知归路 2020-12-06 07:38

I\'ve a UITableViewCell in a UITableViewController. In my cell there is a button that when you click takes you to another view with a

6条回答
  •  Happy的楠姐
    2020-12-06 08:29

    This is better to use

    NSIndexPath *indexPath = [self.callTable indexPathForCell:(UITableViewCell *)[[[sender superview] superview] superview]];
        NSLog(@"%d",indexPath.row);
    

提交回复
热议问题