我的UINavigationController有一个奇怪的问题。的踪迹是:UINavigationController奇怪的崩溃
这是非常奇怪的我,因为我所做的就是:
CommonVC* cvc = [[CommonVC alloc] init];
//CommonVC is my customized viewController. and i did some setting after the init.
[self.navigationController pushViewController:cvc animated:TRUE];
[cvc release];
,并经过3次压入和弹出崩溃。 我也用NSZombie运行它,但它告诉僵尸是CommonVC本身。
所以谁能帮我找到问题会是什么?
你的代码看起来很好 - 错误必须在你的CommonVC类中的某个地方 - 我猜你不保留重要的东西! – deanWombourne 2011-05-20 13:32:00
会导致CommonVC成为僵尸,但里面的东西? – boreas 2011-05-20 13:35:32
不知道 - 取决于你的CommonVC里面有什么 - 你可能有一些排序或保留循环,防止任何对象被释放:) – deanWombourne 2011-05-20 13:36:21