0

I am planning to make a universal app to support retina display. It will be a quiz with more than 100 questions. So, for the bg images the suffix will be: iPhone, iPod:320X480 = photo.png, retina iPhone, iPod: 640X960 = photo@2x.png iPad: 1024X748 = photo~ipad.png and for retina iPad 2048 X 1496 (apple doc?) (1536?) = photo@2x~ipad.png . Do I need to write any additional code? Would it be too much to include 4 images for every question, that means 4 images X 120 questions = 480 images!!!Would it be to heavy?

Daniel Fischer
  • 181,706
  • 17
  • 308
  • 431
George
  • 73
  • 1
  • 1
  • 6

1 Answers1

1

The suffix the OS is looking for is "@2x.png"

So if you want to do separate graphics for iPhone versus iPad, put those differences in their filenames before the @2x part.

And yeah, four images does seem a bit like overkill. Why not just simply have regular resolution image and a high resolution image for various UI widgets used in both your iPad and iPhone versions?

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • I am sorry I didn't understand, you suggest to make 2 bg images instead of 4? What resolution they will be? – George Apr 23 '12 at 16:07
  • This probably depends on how you're designing your app overall, but if I had two separate XIB files (one for iPhone, the other for iPad), then **YES**, I might have two "bg" (background?) images for each XIB file (or four in total, if there are two separate XIB or storyboard files). My original answer was talking about UI widgets (like images used within controls), and then you could just have two images ("regular" resolution and retina high rez). – Michael Dautermann Apr 23 '12 at 16:44
  • I planning to work with one XIB file and creating background images (Wholes images with buttons ,e.g. ducks, birds or words),4 images for each question. – George Apr 23 '12 at 16:57
  • Do you mean, creating only 2 images for buttons? – George Apr 23 '12 at 17:34
  • The usual set-up is to have one XIB file per architecture (i.e. one for iPad, another for iPhone & iPod Touch). Why not just have the two XIB files and two images (one low, one high-rez) for the buttons? – Michael Dautermann Apr 23 '12 at 18:35
  • You mean one image for iPad and one for iPod/phone? What resolutions should I use for high and low? – George Apr 23 '12 at 18:53