tableView のセグメントまたは行を個別に更新する

// リフレッシュ     
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];     
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationA automatic];     
// 1行更新     
NSIndexPath *indexPath=[NSIndexPathindexPathForRow:3 inSection:0];     
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationN one];  

注: 増加または削除がある場合、段落の高さまたは行の高さを変更する必要がありますか。

おすすめ

転載: blog.csdn.net/lichuanliangios/article/details/46011567