iOS: TableView如何刷新指定的cell 或section
2015-12-21 16:22
363 查看
//一个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];
转发的网址:
http://leopard168.blog.163.com/blog/static/16847184420148229221893/
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];
转发的网址:
http://leopard168.blog.163.com/blog/static/16847184420148229221893/
相关文章推荐
- iOS 7 present/dismiss自定义转场动画
- iOS: TableView如何刷新指定的cell 或section
- iOS开发之绘制图片
- iOS 导航栏的手势返回
- iOS时间那点事--NSCalendar + NSDateComponents
- 关于iOS中MVC和MVVM的一些思考
- iOS推送遇到终端无法生成pem
- iOS多线程GCD介绍和使用
- iOS截取字符串(NSString)
- IOS-Nsstring
- IOS 标准时间与时间戳 相互转化
- IOS-46-最新版SDWebImage的使用
- iOS 警告收录及科学快速的消除方法
- IOS ipa安装不上 e8000087
- ios 友盟新浪微博分享 常见问题
- 如何设计一个 iOS 控件?(iOS 控件完全解析)
- IOS 广告轮播控件 - BannerView
- IOS-通过自定义iCarousel来高仿土巴兔选择装修风格效果(中间选中项放大)
- ios 9 tableview分割线不全的问题
- 我常去逛的iOS干货文章、blog等【持续更新】 --转