美文网首页
indexpath获取cell

indexpath获取cell

作者: 楠Y | 来源:发表于2017-04-07 10:58 被阅读791次

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];

相关文章

网友评论

      本文标题:indexpath获取cell

      本文链接:https://www.haomeiwen.com/subject/bfxhattx.html