Supports image naming rules for the new iPad HD screen

Source: Internet
Author: User

After checking the apple documentation, the image naming rules are as follows:


Devices with out retina:

Imagename.png-for iPhone/iPod

Imagename ~ Ipad.png -- for iPad


Devices with retina display:

Imagename @ 2X ~ Ipad.png -- for iPad
ImageName@2x.png-
For iPhone/iPod

Applications Running in IOS 4 shoshould now include two separate files for each image resource.
One file provides a standard-resolution version of a given image, and the second provides a high-resolution version of the same image. The naming conventions for each pair of image files is as follows:

    Standard: <imagename> <device_modifier>. <filename_extension>

    High Resolution: <imagename> @ 2x <device_modifier>. <filename_extension>

The <imagename> and <filename_extension> portions of each name specify the usual name and extension for the file.
The <device_modifier> portion is optional and contains either the string ~ IPad or ~ IPhone. You include one of these modifiers when you want to specify different versions of an image for iPad and iPhone.
The operation sion of the @ 2x modifier for the high-resolution image is new and lets the system know that the image is the high-resolution variant of the standard image.
Important when
Creating High-Resolution versions of your images, place the new versions in the same location in your application bundle as the original.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.