iOS UITableview 刷新指定的某一个section或cell

//某个section刷新    
NSIndexSet *indexSet = [[NSIndexSet alloc] initWithIndex:2];   
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];   

//某个cell刷新    
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:0];    
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone]; 
--------------------- 

 

上一篇:动态加载实例NSSelectorFromString


下一篇:IOS 创建NSIndexpath