How to reload programmatically moved row?

后端 未结 4 1214
别跟我提以往
别跟我提以往 2021-01-11 14:34

Frustrating fact: After calling tableView:moveRowAtIndexPath:toIndexPath:, tableView:cellForRowAtIndexPath: doesn\'t get called for that row.

4条回答
  •  不知归路
    2021-01-11 14:53

    I've had success with [TableView reloadData]. Make sure you are updating your data source, and placing the reload code within a spot that is appropriate.

提交回复
热议问题