iOS刷新某个cell时候crash

//一个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];  

总crash
后来发现刷新之后要end

[tableView endUpdates];


posted @ 2017-06-30 17:22  wzzkaifa  阅读(291)  评论(0编辑  收藏  举报