NSIndexPath *path=[NSIndexPath indexPathForRow:0 inSection:0];
UITableViewCell *cell = (UITableViewCell *)[self.tableView cellForRowAtIndexPath:path];
//通过某行获得cell
应用场景:多行的cell上的按钮 点击回调到tableview 找到对应行
如果按钮上有多个按钮,可以使用tag
代理方法可以这样写
-(void)btnclick:(id)sender
{
UIButton *button = (UIButton *)sender;
NSIndexPath *indexPath = [self.tableView indexPathForCell:(UITableViewCell *)[[sender superview] superview]];
//通过cell上的控件找到cell 通过cell找到行
}