UITableViewCell *cell = (UITableViewCell *)[btn superview];
NSIndexPath *indexPath = [_myTableView indexPathForCell:cell];
NSLog(@"indexPath is = %i",indexPath.row);
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
MyCustomCell *cell = (MyCustomCell *)[tableView cellForRowAtIndexPath:indexPath];
网友评论