//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
// 加入一行cell
[_timeBucketArrayM addObject:@"cc"];
[self.tableView insertRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:_timeBucketArrayM.count - 1 inSection:0]] withRowAnimation:UITableViewRowAnimationFade];
UITableView刷新一行、一个区
最新推荐文章于 2018-03-20 17:28:57 发布