Skip to content

Instantly share code, notes, and snippets.

@xfantasy
Created August 18, 2014 14:41
Show Gist options
  • Save xfantasy/b7d5e8ae1f1868f49f5d to your computer and use it in GitHub Desktop.
Save xfantasy/b7d5e8ae1f1868f49f5d to your computer and use it in GitHub Desktop.
is_retina
#define IS_RETINA ([[UIScreen mainScreen] respondsToSelector:@selector(displayLinkWithTarget:selector:)] && ([UIScreen mainScreen].scale == 2.0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment