您的位置:首页 > 移动开发 > IOS开发

iOS tabelView获取当前选中cell

2016-05-06 09:13 429 查看
TabelView获取当前选中cell:

NSIndexPath *lastIndexPath = [tableViewindexPathForSelectedRow];
DDPEditorCell *newCell = [tableViewcellForRowAtIndexPath:indexPath];

记录上一次点击cell:

staticNSIndexPath
*lastIndexPath;

lastIndexPath = [NSIndexPathindexPathForItem:0inSection:0];

if (lastIndexPath != indexPath) {
DDPEditorCell *cell = [tableViewcellForRowAtIndexPath:lastIndexPath];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: