Search code examples
iphoneipaduniversal

upgrade to universal app - size of mainWindow-iPad is 320x480


I have the following problem. I have an iPhone app and want to upgrade to universal When I do this, I get the expected MainWindow-iPad.xib. But the size of the window is hardcoded to 320x480. Also, there is no view in the window. I red, this should be automatically iPad-sized, so I am assuming I am doing something wrong. What exactly am I missing ? thanks in advance


Solution

  • Yes, the dimensions of a UIWindow object are hard-coded to the size of the iPhone screen. This confused me, too, until I realized there was an option to resize it: select the UIWindow object in the .xib in Interface Builder... in the Attributes pane, make sure the "Full Screen at Launch" checkbox is checked.

    As St3fan says you'll probably want to have a specific main window .xib for your iPad build.

    See my answer at:

    UITabBar unresponsive on iPad