1,在cell里获取点击cell上的控件的indexPath和row
NSIndexPath *indexPath = [(UITableView *)self.superview indexPathForCell: self];
本文介绍了一种在UITableViewCell中通过点击控件来获取对应indexPath和row的方法。具体实现方式为:利用superview属性找到UITableView并调用indexPathForCell方法以确定被点击单元格的位置。
1,在cell里获取点击cell上的控件的indexPath和row
NSIndexPath *indexPath = [(UITableView *)self.superview indexPathForCell: self];
1023

被折叠的 条评论
为什么被折叠?