UITableView reload section

前端 未结 11 2113
余生分开走
余生分开走 2020-12-05 01:46

I want to reload only one section not the full table. Is there any method in UITableView.

[tableView reloadData] is used to load full table

11条回答
  •  没有蜡笔的小新
    2020-12-05 02:44

    that the correct way:

    [self.tableView beginUpdates]; 
    [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone];
    [self.tableView endUpdates];
    

提交回复
热议问题