【发布时间】:2020-01-04 04:14:31
【问题描述】:
当我使用navigationController?.popViewController(animated: true) 或当我关闭UINavigationController 时,我的ViewControllers 的deinit 方法不会被调用。这是否意味着它们没有在内存中被释放?
如何取消分配UINavigationController 及其所有ViewControllers?
【问题讨论】:
-
使用 Xcode 的内存图层次结构特性来查看你的 VC 的引用。
标签: ios swift uiviewcontroller uinavigationcontroller