Why do my table view cells disappear when reloaded using reloadRowsAtIndexPaths?

后端 未结 12 1781
青春惊慌失措
青春惊慌失措 2021-02-02 12:20

I have a bare-bones sample project here:

http://dl.dropbox.com/u/7834263/ExpandingCells.zip

In this project, a UITableView has a custom UITableViewCell. In each

12条回答
  •  滥情空心
    2021-02-02 12:45

    To animate the height changes of a tableView just call.

    [tableView beginUpdates];
    [tableView endUpdates];
    

    Don't call reloadRowsAtIndexPaths:

    See Can you animate a height change on a UITableViewCell when selected?

提交回复
热议问题