2

I have converted my project to support iPad (universal). I have changed it so the MainWindow loads MainWindow-iPad (it does), and that in turn calls it's sub-view controller (it does as well).

In my sub-view controllers code, it instantiates other view controllers and loads them. But only the iPhone version is loading.

So my question is, is the app supposed to automatically look for '-iPad' extension on nib files and load them appropriately, or do I have to make a change in code myself for each nib, like this post:

Dynamically load nib for iPhone/iPad within view controller

If so, its strange that the application can't automatically display the appropriate xib file.

Community
  • 1
  • 1
just_another_coder
  • 1,156
  • 2
  • 13
  • 22

1 Answers1

3

Your app will not automatically look for the -iPad extension on XIB files. It does for you MainWindow-iPad only because there's a setting in the info.plist that determines this.

Ben Gottlieb
  • 85,404
  • 22
  • 176
  • 172