Xcode 4: nib files not loading when run, can't find UI elements

Posted by Jordan on Stack Overflow See other posts from Stack Overflow or by Jordan
Published on 2011-03-11T23:51:42Z Indexed on 2011/03/12 0:10 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

So, I just downloaded Xcode 4 and installed it. I was actually quite looking forward to the single window and integrated IB...

-

However, when I open and run one of my projects, the nib files that the project uses don't seem to load. Instead I'm left looking at a blank white screen (iPhone). This project ran well and fine on Xcode 3.2.

So I thought... this can't be that hard to fix. So I opened up a nib file, thinking that maybe editing or creating a new one from scratch could point me in the right direction. But I can't find the old resources panel from interface builder anywhere. How am I meant to create a new view or add buttons? I know I'm probably just missing something obvious :s

Did anyone else have the same nib file problems - is there a fix (or something stupidly simple that I'm forgetting about)?

-

EDIT: Ok. If I background and un-background the app, the view loads fine. But this happens every time I build, on both iPhone and iOS simulator, i.e. the app doesn't work properly until it's been backgrounded. All the code for loading the view follows from - (void)applicationDidFinishLaunching:(UIApplication *)application.

Now I am really confused.

-

Thanks :)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c