To create a project from another project iPad iPhone, Xcode have a choice in a popover that lets you:
UIDevice.h typedef enum { UIUserInterfaceIdiomPhone, UIUserInterfaceIdiomPad } UIUserInterfaceIdiom; #define UI_USER_INTERFACE_IDIOM()... // Sample code if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { ... // iPad code } else { ... // iPhone code }
20110324.14