IPhone - How to turn an iPhone app into a universal app only?

How can I convert an iPhone app to a universal app only? EDIT: FOUND SOLUTION If you want the option “Update current destination for iPad” to be selected, you must have a target device family installed only for iPhone, not iPad / iPhone. It works for me!

+3
source share
2 answers

“The first step is to select your target in Xcode, right-click and use the command“ Update current target for iPad ... ”. You will be presented with a choice:

enter image description here

" ", Xcode () . Apple , , , , . , , . Info.plist.

http://useyourloaf.com/blog/2010/4/7/converting-to-a-universal-app-part-i.html

0

, /, , . :

iPad.

xib iPad . Builder , .xibs.

info.plist( NSMainNibFile ~ ipad), iPad xib iPad. .. plist.

iPad, , . , - :

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
    ...
} else {
    ...  // iPhone stuff, etc.
}

, iPad xibs .

iPad iPhone.

+1

All Articles