Skip to content

Instantly share code, notes, and snippets.

@lottadot
Created April 5, 2010 13:16
Show Gist options
  • Save lottadot/356321 to your computer and use it in GitHub Desktop.
Save lottadot/356321 to your computer and use it in GitHub Desktop.
if ([UIDevice instancesRespondToSelector:@selector(userInterfaceIdiom)]
          && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
     // on iPad, running as iPad
} else {
     // either not in 3.2, or on an iPhone, or on iPad in iPhone compatability mode
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment