myTableViewCell *cell = [self.tableView cellForRowAtIndexPath:[self.tableView indexPathForCell:((myTableViewCell*)[[btn superview]superview])]];
通过button找到所在的cell;
(1) NSDictionary*dic = (NSDictionary*)self.allArr[indexPath.row];
CellMOdel* model = [[CellMOdelalloc]init];
[modelfill:dic];
(2) NSIndexPath*index = [self.tableViewindexPathForCell:cell];
NSDictionary*dic =self.allArr[index.row];
CellMOdel* model = [[CellMOdelalloc]init];
[modelfill:dic];
通过indexpath 找到数据;
网友评论