How does one get UI_USER_INTERFACE_IDIOM() to work with iPhone OS SDK < 3.2

 

BOOL iPad = NO; #ifdef UI_USER_INTERFACE_IDIOM iPad = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad); #endif if (iPad) { // iPad specific code here } else { // iPhone/iPod specific code here }

 

你可能感兴趣的:(UI,OS)