/ Published in: Objective C
Expand |
Embed | Plain Text
-�void� viewDidLoad { #if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 30200) NSString *str; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { } else { @"Running as an iPhone/iPod touch application"]; } UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Platform" message:str delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; #endif [super viewDidLoad]; }
You need to login to post a comment.
