//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationA utomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationN one];
总crash,后来发现刷新之后要end
[tableView endUpdates];
本文深入探讨了在iOS开发中使用UITableView进行数据刷新时的关键操作:使用NSIndexSet刷新特定section,使用NSIndexPath刷新特定cell,并强调了刷新操作后的必要性——调用[tableView endUpdates]确保UI状态正确更新。
1322

被折叠的 条评论
为什么被折叠?



