0

So I've got a MyNibController class and an nib file which I've tried calling both MyNib.xib and MyNibController.xib with no luck. I think I've got them hooked up properly on the IB end (I was following a tutorial for xcode 5 though) with my nib's owner designated to be of class MyNibController.

The problem is that the view is apparently not loaded even after I run my applicationDidFinishLaunching method in my AppDelegate class which includes:

[window addSubview:myNibController.view];

The simulator shows a blanks white screen, and the documentation says if a subclass of UIController can't find a nib with the right name it just makes up a blank view, so that's why I'm thinking it can't find it. But then wouldn't that mean:

[myNibController isViewLoaded]

should return true after the first code runs?

Thanks for any assistance!

krstn
  • 101
  • `(I was following a tutorial for xcode 5 though)` - there is no Xcode 5 yet. – Hailei Apr 28 '12 at 04:58
  • How do you initialize your myNibController? Can you paste the code of myNibController initialization? – Maksim Apr 28 '12 at 15:48
  • Halley, sorry, ios 5 with xcode 4. And Maxim, I have it as a property and @synthesize it. I was a little uncertain of doing this but it works fine with the other nib and its nibcontroller I have in the project. – krstn Apr 29 '12 at 00:09

0 Answers0