0
我有内存泄漏 我的代码序列是这样的参考,以查看属性保持视图控制器当我米使用视图控制器的视图
viewController1 = [[ViewController alloc] init];
destinationViewController = [[DestinationViewController alloc] init];
[destinationViewCOntroller useView:viewController1.view];
[viewController1 release];
[destinationViewController release];
以及用于测试目的我在useView方法空实现。所以我的问题是viewController1永远不会被释放。我确定没有其他地方对viewController1有任何引用。 当我删除方法调用(useView),我通过viewcontroller1.view然后viewcontroller1正常释放。 任何想法,为什么这样的行为?
你是如何检查vc1没有被释放的? – Mundi