0

So I've just started using Xcode to make a game for iOS and I've been struggling with the whole screen size/background image sizes...

I've been reading a lot of questions like this, but I don't understand what is meant by @3 and @2 etc?

I was under the impression if I account for the size of iPhone 6+, it would all just be scaled down/autofit iPhone 6... or visa-versus.

Community
  • 1
  • 1
Reanimation
  • 3,151
  • 10
  • 50
  • 88

1 Answers1

1

If you plan to support for only iOS 8 and onwards on your game then you do not have to give different images for different device types. As per the WWDC 2014 video titled "What's new in interface builder" Apple introduced support for Vector Images. You have to give the the image at 1x resolution and Xcode will create the required images at compile time. I found this link useful for further understanding.

http://martiancraft.com/blog/2014/09/vector-images-xcode6/

On the other hand if you want to support iOS 7 also then you will have to give 3 sets of images for @1x, @2x and @3x. These numbers are scaling factors. Apple introduced newer devices with higher resolution it became necessary to give higher resolution images to keep up with the device resolution. So these sets of images are basically to be be displayed on devices with different resolution.

@1x - non retina devces like iPhone 3GS. iPad,iPad2 (not a complete list)
@2x - iPhone 4s, iPhone 5,iPhone 5s,iPhone 6,iPad 4 (not a complete list)
@3x - iPhone 6+
shshnk
  • 1,621
  • 14
  • 26