Pop to root view controller without animation crash for the table view

后端 未结 6 1161
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 19:27

I have 3 view controller in a tab bar controller. Clicking on any tab loads its root view controller in the navigation stack.

e.g. tab1, tab2, and tab3.
The 2nd vi

6条回答
  •  没有蜡笔的小新
    2021-02-05 20:27

    Double-click your executable in the Groups&Files list; click Arguments tab; click "+" in lower pane, enter "NSZombieEnabled", set value to YES, check the box, click red dot to dismiss. Now run your test case again, and it will tell you which object has been deallocated. I suspect it's the array backing your tableView in tab2V2. Make sure your memory handling is correct (is it retained and released correctly?).

提交回复
热议问题