ios UITableview 刷新某一个cell 或 section
2015-07-27 16:54
597 查看
代替tableview的reloadData方法(有动画)
//一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:0]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; //一个cell刷新 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:1 inSection:0]; [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
相关文章推荐
- [openStack]使用Fuel安装OpenStack juno的fuel_master
- iOS8开发~UI布局(一)初探Size Class
- Android API Guides 阅读笔记(4)----Fragment
- easyUI的datagrid 分页保存选中状态
- LeetCode Implement Stack using Queues
- GTK入门学习:Libglade 和 GtkBuilder 的区别使用
- UIImagePickerController详解
- Request.ServerVariables 参数大全
- *** Assertion failure in -[UITableView layoutSublayersOfLayer:]
- 格而知之1:UIButton中imageView和titleLabel的位置调整
- 设置UITableViewCell高度的问题
- POJ - 2478 - Farey Sequence (欧拉函数)
- HDU 5312-Sequence(三角形数+推导)
- ios UI控件引用用weak,UI控件代理属性必须用weak
- 把UIView转成UIImage,解决模糊失真问题
- hdu5331--Sequence(数学)
- [Tue, 21 Jul 2015 ~ Mon, 27 Jul 2015] Deep Learning in arxiv
- iOS Build失败的一些原因(持续更新)
- Log日志记录buildMessage
- Equivalent Strings(二分+递归深搜)