0

In xCode when I specify iPad images I can use syntax like: image~ipad.png, image~ipad@2x.png, etc.

Is there any special designators for iPhone? For example, iPhone 5 - 640x1136, iPhone 4/4s - 640x960 and iPhone - 320x480.

If not, what is the best way to have different images? Do I need to do this checking in my code?

Thanks

Prince Agrawal
  • 3,619
  • 3
  • 26
  • 41
LilMoke
  • 3,176
  • 7
  • 48
  • 88

1 Answers1

1

There is a new feature introduced in xcode 5 to manage images in your iOS app in better way. That is Asset catalogs. Learn more about it here Let me know if more info needed. No need to perform any check in code btw :)

Prince Agrawal
  • 3,619
  • 3
  • 26
  • 41
  • Great thanks, that will work perfect!! One question, how do you recommend adding jpg's? – LilMoke Jan 13 '14 at 20:42
  • For jpg & other formats, look at [this Question](http://stackoverflow.com/questions/18785946/how-can-i-add-jpegs-to-an-asset-catalog-in-xcode) – Prince Agrawal Jan 13 '14 at 21:13