Reputation: 6490
I am developing universal app for iOS,
I am using Autolayout
feature in my app,
I have one doubt:
I want to apply background image in my app, How many background image i will have to make ?? and what will be the naming conventions of the images ? so that iPhone automatically takes corresponding images according to device.
Like we gives on launch images, [email protected]
, [email protected]
, [email protected]
and device automatically understands it's corresponding images.
Upvotes: 1
Views: 1105
Reputation: 12908
you need 2 types of images for iphone
and ipad
.
For ipad
you just need to add ~ipad
before .png
.
e.g. image.png
for iphone
and image~ipad.png
for ipad
.
Do the same for Retina display images also.
e.g.
iPhone Retina
: [email protected]
iPad Retina
: image@2x~ipad.png
Upvotes: 4
Reputation: 1893
What should help in your case is Asset Catalogs, which are by far the best way to manage assets for multiple devices.
Upvotes: 1