ios 刷新UITableView中某一个section或者ce
作者:
景彧 | 来源:发表于
2017-02-04 17:28 被阅读221次- (void)updateCPUInfo:(NSTimer *)timer {
// section刷新
NSIndexSet *indexSet = [[NSIndexSet alloc] initWithIndex:5];
[self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
// cell刷新
NSIndexPath *indexPath1 = [NSIndexPath indexPathForRow:1 inSection:5];
NSIndexPath *indexPath2 = [NSIndexPath indexPathForRow:2 inSection:5];
[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath1, indexPath2, nil] withRowAnimation:UITableViewRowAnimationNone];
}
本文标题:ios 刷新UITableView中某一个section或者ce
本文链接:https://www.haomeiwen.com/subject/pgfsittx.html
网友评论