objective - C 小谈: tableView的刷新

1: 数据刷新的总体步骤

1.1: 修改模型数据

1.2: 刷新表格(刷新界面)

 

2: 刷新表格的方法


//
全局刷新(每一行都会重新刷新) - (void)reloadData; // 局部刷新(使用前提: 刷新前后, 模型数据的个数不变) - (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation; // 局部删除(使用前提: 模型数据减少的个数 == indexPaths的长度) - (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;

 

posted @ 2015-03-31 22:50  星星Star😋  阅读(425)  评论(0编辑  收藏  举报