Table view 刷新某个值

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 刷新某个值)