美文网首页
Table view 刷新某个值

Table view 刷新某个值

作者: Lina_21C | 来源:发表于2017-02-13 22:40 被阅读0次

1. 如何刷新tableView中数据源某个key值?

if(_dataSouce.count!=0){

                   [_dataSouce[_index] setIsInGroup:@"1"];

}

               [_orderTableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:_index inSection:0]] withRowAnimation:UITableViewRowAnimationNone];

其相比  [self.tableView reloadData] 效率更高。

区别为:· reloadData刷新整个tableView, 效率更高

              ·reloadIndexpath刷新section及row对应的标题和cell

2. 如何防止iCarousel中某一页内容被隔壁页button响应到:(3行代码, 设置用户交互)

相关文章

网友评论

      本文标题:Table view 刷新某个值

      本文链接:https://www.haomeiwen.com/subject/degtwttx.html