开发者

iPhone SDK: Navigation among view controllers causes crash

(Sorry, I restarted this thread as I incorrectly accepted the answer for my problem.)

My app is crashing when I navigate two view controllers in my application. For example, if I do this sequence:

RootController ViewControllerA ViewControllerB ViewControllerA

My app crashes.

It crashes when I pressed the back button in ViewControllerB. So, It seems like it is with two or more ViewControllers being pushed. E开发者_如何学运维ach by themselves work.

I don't know why.

I don't see any output to the console. Is there some type of debugging I should put?

I looked at the dealloc() to make sure all properties were being release before dealloc()

Any ideas?

Thank you.


Is your 2nd view controller holding a reference to the 1st without retaining it? If so, when your 2nd is dealloc'd it could release the 1st and cause it to have no references and be an invalid object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜