Asset Catalog Help (八)---Customizing Image Sets for Devices
Customizing Image Sets for Devices
Add images to a set that are customized for display on the devices supported by your app.
In the set list, select an image set.
在图片集列表中,选择一个图片集。
Open the utilities area for the workspace window by clicking the Show Utilities button (
).点击(
)显示工作区窗口的工具区(utilities area).In the inspector bar, click the Attributes Inspector button (
).在inspector 栏,点击属性检查按钮 (
)。From the Device pop-up menu, choose Device Specific.
在Device弹出菜单那,选择Device Specific.

Use the checkboxes in the Attributes inspector to select the devices.
在属性检查器内选择需要设置的设备。

In the figure above, the image is customized for the iPhone and Apple Watch. The image still needs files for the retina 4-inch iPhone and both resolutions for the iPad.
上图,Image图片集是为iPhone和Apple Watch定义的。 图片集还需要retina 4-inch尺寸的iPhone文件,以及iPad的两种分辨率文件。
You need to add device specific images to a set only when your app needs to display different sizes of the image on different devices. For example, a background image for your main view showing a watermark of your logo could need all of the different sizes shown in the figure above. But an icon for a button that does not vary between devices can use only the universal setting shown in the first figure because no special sizes are required.
只有当你的应用程序需要在不同的设备上显示不同尺寸的图片时才需要把设备指定的图片放入一个集合。 比如,一张用于主视图的背景图片,图片上需要打印不同尺寸的Logo水印时可以使用上图所示的指定特殊设备的图片集。如果只是一个用于按钮的图标,它在不同设备间不会变化的图标,则只需要使用图一种的universal设置,因为不需要特殊的尺寸。
Customizing your images for devices is one way that your app can support multiple screen sizes and orientations. For apps designed for iOS 8 and later, size classes provide a more flexible alternative.
为不同设备自定义不同图片是让你的应用程序支持多个屏幕尺寸和方向的一种方法。对于iOS8或以上版本的应用程序,尺寸类可以提供一种更加灵活的替代选择。
Asset Catalog Help (八)---Customizing Image Sets for Devices的更多相关文章
- Asset Catalog Help (七)---Customizing Image Sets for Size Classes
Customizing Image Sets for Size Classes Add images to a set that are customized for display in diffe ...
- Asset Catalog Help (三)---Adding Image Sets
Adding Image Sets Organize versions of your images in image sets, which you can add to an asset cata ...
- Asset Catalog Help (十一)---Removing Images and Sets
Removing Images and Sets Optimize the size of an asset catalog by removing unused images or sets. 通过 ...
- Asset Catalog Help (十)---Specifying a Resizable Area of an Image
Specifying a Resizable Area of an Image Use the Xcode Slicing feature to specify the dimensions of a ...
- Asset Catalog Help (九)---Changing Image Set Names
Changing Image Set Names Use the Attributes inspector to edit a set’s name. 使用属性检查器(Attributes inspe ...
- iOS-----About Asset Catalog
About Asset Catalogs Use asset catalogs to simplify management of images that are used by your app a ...
- Asset Catalog Help (二)---Creating an Asset Catalog
Creating an Asset Catalog Create an asset catalog to simplify management of your app’s images. 创建一个a ...
- Asset Catalog Help (六)---Adding OS X Icons
Adding OS X Icons Simplify image management by storing your OS X icons in an asset catalog. 把OS X图标存 ...
- Asset Catalog Help (五)---Migrating an iOS App Icon Set or Launch Image Set
Migrating an iOS App Icon Set or Launch Image Set Simplify image management by moving existing app i ...
随机推荐
- 前端UI框架整理
JQuery Jquery官网:http://jquery.com/ jQuery是一个快速,小巧,且功能丰富的JavaScript库. Jquery-1.11.3.min.js 压缩版:http:/ ...
- THE MARTIAN
影片的最后一段自白 When I was up there, stranded by myself …… “did I think I was going to die?” Yes, absolute ...
- JavaScript事件在WebKit中的处理流程研究
本文主要探讨了JavaScript事件在WebKit中的注冊和触发机制. JS事件有两种注冊方式: 通过DOM节点的属性加入或者通过node.addEventListener()函数注冊: 通过DOM ...
- CF 445A(DZY Loves Chessboard-BW填充)
A. DZY Loves Chessboard time limit per test 1 second memory limit per test 256 megabytes input stand ...
- Hibernate表关系映射之多对多映射
一.多对多的实现原理 在数据库中实现多对多的关系,必须使用连接表.也就是用一个独立的表来存入两个表的主键字段,通过遍历这张表来获取两表的关联关系. 而在我们的对象中,多对多是通过两者对象类中互相建立对 ...
- 怎么实现单击span时给span添加边框
说明: 1.开发环境 vs2012 asp.net mvc4 c# 1.效果图 2.html 前端代码 <%@ Page Language="C#" AutoEventWir ...
- java中的break与continue
1.两者的作用 break:是跳出当前的循环块或者程序块.循环块有for.do while.while,程序块有switch(){case 1: xxx;break;}在循环体中的作用是跳出正在循环的 ...
- HTTP1.0 与HTTP2.0的区别
一.多路复用 HTTP2.0 使用了多路复用技术,做到同一个连接并发处理多个请求,而且并发请求的数量比HTTP1.1大了好几个数量级. 二.数据压缩 HTTP1.1不支持header数据压缩,HTTP ...
- SCAU 还有两个东西 —— 异或
竞赛题 F 还有两个东西 Time Limit:400MS Memory Limit:65535K 题型: 编程题 语言: 无限制 描述 给出n( n >= 2 )个整数,其中有 2 个 ...
- python学习笔记:第二天(运算符)
Python3 运算符 注:以下部分示例源自于http://www.runoob.com/ 1.算术运算符 假设变量a为10,变量b为20: 运算符 描述 实例 + 加 - 两个对象相加 a + b ...