Tuesday, December 31, 2013

UI_USER_INTERFACE_IDIOM

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

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.