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

后端 未结 12 1775
青春惊慌失措
青春惊慌失措 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:26

    May be I am missing a point, but why dont you just use:

    UITableViewRowAnimationNone

    I mean instead of :

    [tableView reloadRowsAtIndexPaths:indicesToReload withRowAnimation:UITableViewRowAnimationAutomatic];
    

    use

    [tableView reloadRowsAtIndexPaths:indicesToReload withRowAnimation:UITableViewRowAnimationNone];
    

提交回复
热议问题