tableView cell 的刷新 插入
2016-05-20 09:26
337 查看
//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
相关文章推荐
- SQL跨数据库复制表数据
- keil l251 command summary --Lib
- Oracle数据库——用户、方案的创建与管理
- 用AJAX实现页面登陆以及注册用户名验证
- git flow在Windows上的安装和使用
- DP/HDMI/DVI显示器接口详解
- QByteArray通过QDataStream的读写
- Java Json解析,Java Web Json解析,Java Web服务端获取Json数据,客户端通过HTTP获取Json数据
- 学习笔记之Widget
- Open-E DSS V7 应用系列之八 远程访问和管理员密码恢复
- Open-E DSS V7 应用系列之八 远程访问和管理员密码恢复
- Open-E DSS V7 应用系列之八 远程访问和管理员密码恢复
- 哪些网站需要HTTPS(SSL证书)
- android常见的内存泄露及解决方案
- 12个JavaScript技巧
- 计算机视觉库整理
- C++中智能指针的设计和使用
- Codis升级到2.0.14的最简方法
- jQuery设置和获取span的内容 (详解)
- JNI的一些使用