Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

psychaosx

macrumors newbie
Original poster
Mar 3, 2008
8
0
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
Code:
[[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?
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.