Last active
August 29, 2015 14:03
-
-
Save sanketfirodiya/f969f51581d775e24dac to your computer and use it in GitHub Desktop.
iOS device type determination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { | |
} else if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment