
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 设置高清图片所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)