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];
}
NSIndexPath *lastIndexPath = [tableViewindexPathForSelectedRow];
DDPEditorCell *newCell = [tableViewcellForRowAtIndexPath:indexPath];
记录上一次点击cell:
staticNSIndexPath
*lastIndexPath;
lastIndexPath = [NSIndexPathindexPathForItem:0inSection:0];
if (lastIndexPath != indexPath) {
DDPEditorCell *cell = [tableViewcellForRowAtIndexPath:lastIndexPath];
}
相关文章推荐
- iOS开发简单高效的数据存储
- IOS 集合视图指南2:集合视图基础
- self.array 和 _array的区别
- iOS多线程(1)基本概念
- Mob社交分享 ShareSDK 界面中文化的方法
- iOS越狱
- iOS项目的目录结构和开发流程
- ios开发软件下载地址
- ios - runtime运行时应用---交换方法
- iOS视图控制器编程指南 --- 呈现一个视图控制器
- iOS 加密
- IOS开发之手写约束
- IOS开发之AVAudioPlayer的基本使用
- ios设备型号,调试代码
- iOS: 极光推送
- iOS之runtime
- iOS代码加密常用加密方式
- iOS开发最简单的让你的Cell自适应高度
- iOS开发-你真的会用SDWebImage?
- ios开发环境配置及cordova安装与常用命令