码迷,mamicode.com
首页 > 移动开发 > 详细

iOS刷新某个cell时候crash

时间:2015-06-29 22:22:21      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:tableview

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


版权声明:本文为博主原创文章,未经博主允许不得转载。

iOS刷新某个cell时候crash

标签:tableview

原文地址:http://blog.csdn.net/s133315202/article/details/46686425

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!