1、刷新某个section
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:sectionIndex];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
2、刷新某个cell
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:rowIndex inSection:sectionIndex];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
网友评论