iOS 设置高清图片

iOS 设置高清图片,第1张

概述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

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.

总结

以上是内存溢出为你收集整理的iOS 设置高清图片全部内容,希望文章能够帮你解决iOS 设置高清图片所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1089657.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存