UITableView的刷新
2020-02-16 21:07
387 查看
UITableView的刷新
1> 数据刷新的总体步骤
* 修改模型数据
* 刷新表格(刷新界面)
2> 刷新表格(刷新界面)的方法
* 全局刷新(每一行都会重新刷新)
- (void)reloadData;
* 局部刷新(使用前提: 刷新前后, 模型数据的个数不变)
- (void)reloadRows:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
* 局部删除(使用前提: 模型数据减少的个数 == indexPaths的长度)
- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
转载于:https://www.cnblogs.com/tingxins/p/4640622.html
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- 手势触摸定位(UIPanGestureRecognizer)
- Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
- include()和require()的区别
- Mint-UI 学习 --1--Toast组件
- Performance testing using LoadImpact on IBM Bluemix Platform
- GUID、UUID、CLSID、IID
- SeniorSort 之 QuickSort
- xCode4.2中导入OpenFlow库到项目中出现编译警告warning: Semantic Issue: Writable at ...
- UIViewController各个方法的加载顺序
- 扩展UIColor类
- UITabBarController资料
- UIViewController
- iOS 自定义UITableView 删除View
- UITextFiled 联想单词或汉字捕获不到变化?
- UITableViewCell被UITabbarController遮盖44像素
- #iOS问题记录# 关于UITableViewcel的分割线去掉问题
- The server cannot or will not process the request due to something that is perceived to be a client
- Packet for query is too large(mysql写入数据过大)
- cola-ui的使用
- easyui中parser的简单用法