Reputation: 451
I'm trying to set a background image for my app that will scale to fill the 4, 4.7, and 5.5 inch screens.
Upvotes: 6
Views: 16555
Reputation: 196
The 4 and 4.7 use @2x, 5.5 used @3x, please see the screenshot detail.
You can download the PDF that is the origin of this screenshot from Ugur Akdemir's Dribble.
Upvotes: 10
Reputation: 201
You can use this solution: http://codemotionapps.com/get-assets-ready-ios8-iphone-6-plus/
I created vector gradient in free Inkscape editor and export to PDF (my PDF file size is 4Kb). Then I add this PDF to Images.xcassets in my project and selected it. In Attributes inspector for Scale Factors choose Single Vector. When the app is compiled the PDF generates PNGs for all nesesery resolutions @1x, @2x, @3x and others :-)
Upvotes: 0