PDA

View Full Version : Crash on view display (phone only; works in sim)




psychaosx
Jan 20, 2009, 04:59 PM
Earlier today, my program was running fine, but I decided I wanted one of my views to look almost identical to another. So, I copied and pasted the appropriate view in Interface Builder and hooked up the connections to what the old view had been hooked up to.

Now when it runs on my phone, the phone freezes as soon as it tries to display the view. The view is created, but when I try to display the view in a Navigation Controller with this line
[[self navigationController] pushViewController:newController animated:YES];
the phone freezes.

I used Time Machine to recover my old nib file, then I did a clean build. The problem persists. However, it runs correctly in the iPhone simulator.

Does anyone have any suggestions?



psychaosx
Jan 20, 2009, 09:51 PM
Alright, I fixed the problem by restoring my whole project in Time Machine. I can replicate the problem by pasting a second view into a nib file (resulting in 2 windows), then deleting the original view. My program will then crash whenever it tries to display the view, and the problem persists if I restore the file to what it used to be.