ios UITableview 刷新某一个cell 或 section

ios UITableview 刷新某一个cell 或 section

   
//一个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];  
posted @ 2015-04-22 09:40  穿山甲随笔-iOS开发  阅读(356)  评论(0编辑  收藏  举报