UITableView: deleting sections with animation

后端 未结 7 1231
春和景丽
春和景丽 2020-12-02 05:39

Update

I have posted my solution to this problem as an answer below. It takes a different approach from my first revision.


Ori

7条回答
  •  余生分开走
    2020-12-02 06:40

    I suspect that you are forgetting to remove the object representing the section from your internal storage, so that the -numberOfSectionsInTableView: method is still returning 1 after all sections are deleted.

    That's exactly what I was doing wrong when I had the same crash!

提交回复
热议问题