2011-05-20 209 views
2

我的UINavigationController有一个奇怪的问题。的踪迹是:UINavigationController奇怪的崩溃

trace

这是非常奇怪的我,因为我所做的就是:

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本身。

enter image description here

所以谁能帮我找到问题会是什么?

+0

你的代码看起来很好 - 错误必须在你的CommonVC类中的某个地方 - 我猜你不保留重要的东西! – deanWombourne 2011-05-20 13:32:00

+0

会导致CommonVC成为僵尸,但里面的东西? – boreas 2011-05-20 13:35:32

+0

不知道 - 取决于你的CommonVC里面有什么 - 你可能有一些排序或保留循环,防止任何对象被释放:) – deanWombourne 2011-05-20 13:36:21

回答

2

您是否利用委托并将它们设置在您的视图控制器中。如果是的话,检查它们是否为零...

+0

@boreas:它有效吗?你现在可以奖赏赏金吗? – visakh7 2011-05-25 04:20:28

+0

@boreas:直到现在我还没有得到赏金:( – visakh7 2011-05-26 06:23:37

+0

对不起,上次它不允许我因为时间限制问题而奖赏赏金现在它是你的,并且感谢你的帮助:) – boreas 2011-05-28 13:55:09