How does one get UI_USER_INTERFACE_IDIOM() to work with iPhone OS SDK < 3
BOOL iPad = NO;#ifdef UI_USER_INTERFACE_IDIOMiPad = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);#endifif (iPad) {// iPad specific code here} else {// iPhone/iPod specific code here}
页:
[1]