Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

image sizes in iOs

I understand that to cater for iPhone 4 - 5 we need to include two images for high retina - i.e. image.png and image2x.png but is that for every image we have in an app now or only the app icons and launch images?

4 Answers

Deleted User

Every image

Every image will need a "@2x" counterpart, but this is only to make sure that your regular image doesn't get affected by upscaling (distortion). This get's interesting when you have to take the "tallness" into account for the iPhone 5 when setting full background images. Something you can read more about here.

Thanks - more reading :o)

One thing that strikes me is that having two images is going to increase the size of the app which to me isn't ideal.

Yes, but this way you don't need two applications say "Crystal Ball" for iPhone and "Crystal Ball Retina" for iPhone's with retina display. This is similar to apps on Android. A lot of applications I have made for Android have required four sizes of the same image. This doesn't seam ideal at first, but it is ideal to have one app for multiple pieces of hardware.