Guest User

Untitled

a guest
May 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. if ([UIDevice instancesRespondToSelector:@selector(userInterfaceIdiom)]
  2.  
  3.           && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
  4.  
  5.      // on iPad, running as iPad
  6.  
  7. } else {
  8.  
  9.      // either not in 3.2, or on an iPhone, or on iPad in iPhone compatability mode
  10.  
  11. }
Add Comment
Please, Sign In to add comment