Converting iphone app to universal woes?
I've converted my app to a universal app in xCode 4. This created me my MainWindow-iPad.xib automatically and modified my info.plist to include the iPad version of my Main Nib File Base Name....(MainWindow-iPad).
Sadly though, my app appears to be still using my iphone version of my MainWindow.xib.
This can't be right. My target is set to Universal.
Can anyone suggest why my iPad version isn't being used?
Thanks
Open up the Project and Find your plist
Right click in the plist and select "Show raw keys/value pairs"
You should see two ipad entries
NSMainNibFile~ipad
and
UISupportedInterfaceOrientations~ipad
NSMainNibFile~ipad should have the name of your ipad interface.
inside UISupportedInterfaceOrientations~ipad you should have at least one key. My app is Landscape so here are the ones I have
UIInterfaceOrientationLandscapeRight
UIInterfaceOrientationLandscapeLeft
Sometimes the project editor does not edit the Plist correctly.
verify these settings and verify the class types and connections in the ipad xib file are correct.
Hope that helps.
Sorted it!
I needed to do a ios reset on the ipad simulator. Just stumbled upon it
Thanks for the input.
链接地址: http://www.djcxy.com/p/95726.html上一篇: iPad的重复目标,但iPad仍然运行iPhone目标
下一篇: 将iPhone应用转换为普遍的困境?