标签:
1.对整个页面刷新
[ tableView reloadData];
2.对某一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
3.对cell刷新
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:2 inSection:0];
//数组 也就是可以多个cell
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, nil] withRowAnimation:UITableViewRowAnimationAutomatic];
标签:
原文地址:http://www.cnblogs.com/fengkuangIT/p/5053460.html