我在 TabBarController 中封装并实例化了两个 ViewController。TabBarController 在上级 NavigationController 中实例化。
当 NavigationController 决定返回并“离开”TabBarController 及其两个 ViewController 时,NavigationController 会取消 TabBarController。调用 TabBarController 的 deinit 方法。但我注意到,我的两个 ViewController 的 deinit 方法没有被调用。
问题
怎么可能是 TabBarController 可以被释放,但嵌入的 ViewController 不能?ARC 在这种情况下如何工作?如何强制嵌入式 ViewControllers 的 deinit 调用?