Update UITableViewCell without reload

后端 未结 4 1219
广开言路
广开言路 2020-12-18 11:56

So here\'s my situation:

I have a UITableView where each cell has some buttons.
In the cellForRowAtIndexPath I set the indexpath of the row so when the a button

4条回答
  •  Happy的楠姐
    2020-12-18 12:42

    You should be able to redraw the tableview without a full reload by starting and ending an update like this:

    [tableView beginUpdates];
    [tableView endUpdates];
    

提交回复
热议问题