Skip to content

Instantly share code, notes, and snippets.

@yoterpa
Created March 25, 2015 19:32
Show Gist options
  • Save yoterpa/746e3cd8020d5dfcb1c9 to your computer and use it in GitHub Desktop.
Save yoterpa/746e3cd8020d5dfcb1c9 to your computer and use it in GitHub Desktop.
Xcode 6.1 using same 2x image for iPhone 6 and 4s simulator

best approach is the old-fashioned way. Create images for each size with names like test-667 and do something like:

[UIImage imageNamed:[NSString stringWithFormat:@"test-%g", [[UIScreen mainScreen] bounds].size.height]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment