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 should 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 inclusion 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. 总结
以上是内存溢出为你收集整理的支持新iPad高清屏的图片命名规则全部内容,希望文章能够帮你解决支持新iPad高清屏的图片命名规则所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)