Krunal
Krunal

Reputation: 6490

iOS image size for iPhone and iPad

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

Answers (2)

Vaibhav Saran
Vaibhav Saran

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

Jonathan Zhan
Jonathan Zhan

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

Related Questions