Showing posts with label UIUserInterfaceIdiomPad. Show all posts
Showing posts with label UIUserInterfaceIdiomPad. Show all posts

Tuesday, December 31, 2013

UI_USER_INTERFACE_IDIOM

if (UIUserInterfaceIdiomPad == UI_USER_INTERFACE_IDIOM()) {
    NSLog(@"pad");
} else {
    NSLog(@"phone");
}