Why ARC is not deallocating memory after popViewController

前端 未结 9 778
刺人心
刺人心 2021-02-01 02:20

I\'m pushing and popping ViewControllers in UINavigationController.

I\'m tracking the memory consumption of my app. While pushing the new viewController the memory consu

9条回答
  •  梦如初夏
    2021-02-01 02:27

    I think you get an error, when you try to pop the view controller because the navigation controller does not have a valid reference to the view controller, as it was released after you pushed it.

提交回复
热议问题