I've been playing around with upgrading from an iPhone app to a Universal application, using the handy Upgrade Current Target for iPad... menu option.
Everything appears to succeed (although it's really ha开发者_JAVA技巧rd to tell, Xcode just whispers success). So I started to change my MainWindow-iPad.xib file that was generated by the upgrade. And that's when I noticed some weirdness.
The window has the same dimensions as iPhone not iPad. "Split View Controller" doesn't show up in the Library. It's as though xcode still thinks it's an iPhone application. I've gone into the Target Info and Project Info and set the Targeted Device Family to iPhone/iPad, just like the internets told me to; I set the orientation flags, just like the internets told me to.
When I run, buttons don't work that worked on iPhone. I'm using Xcode 3.2.3.
I'd rather not go through the hassle of setting up a new project and moving all the code over. I've noticed building for the app store is extremely fragile and it works for this project so I don't want to mess with it. I say this anticipating an answer with that very solution.
I'm sure there is some obscure setting that's messing everything up, but I'm a total n00b on the iPhone platform, I can't figure out.
Care to enlighten me?
Why not create a new iPad xib and rename the key in your info plist to that xib?
Make sure the xib is for iPad.
精彩评论