得到點擊的button所在的cell單元格

自定義cell,button,tableViewblog

UITableView *cell = (UITableView *)[[self.btn superview] superview] ;
NSIndexPath *index = [self.tableView indexPathForCell:cell];
NSLog(@"index is = %li",(long)index.row);
相關文章
相關標籤/搜索