Working with screen resolutions

As mentioned previously, iOS games can be executed on devices with different resolutions and screen sizes. This is the reason why it's important to keep in mind the following table, which shows the different families of resolutions and their required file names:

 

iPhone 6 Plus

iPhone 6

iPhone 4s, iPhone 5

iPad Retina

iPad

Devices

iPhone 6 Plus, iPhone 6s Plus

iPhone 6, 6s

iPhone 4s

iPhone 5, 5C, 5S

iPod Touch 5G

iPad Air, Air 2, iPad mini Retina

iPad, iPad 2, iPad mini

Resolution

1242 x 2208

750 x 1334

640 x 960

640 x 1136

1536 x 2048

768 x 1024

File name

file@3x.png

file@2x~iphone.png

file@2x.png

file@2x~ipad.png

file@1x.png

Note that we are showing the devices supported by iOS 9, which is ...

Get Getting Started with SpriteKit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.