Natedesigns





IOS Ipad-iphone Check

When working with a universal app it’s necessary to have code that actions specifically to either the ipad of iphone.

#define IDIOM    UI_USER_INTERFACE_IDIOM()
#define IPAD     UIUserInterfaceIdiomPad

if ( IDIOM == IPAD ) {
    /* do something specifically for iPad. */
} else {
    /* do something specifically for iPhone or iPod touch. */
}