Adding Image Sets
Organize versions of your images in image sets, which you can add to an asset catalog.
你可以用图片集组织管理不同版本的图片 ,图片集可以放入一个asset catalog.
- In the project navigator, select an asset catalog.
在项目导航区(project navigator)中,选择一个asset catalog.
- Select an image in the Finder, and drag it to the set list in the selected asset catalog.
在Finder中选择一张图片,并把它拖入asset catalog中的集合列表(set list)---下图左侧。
A new image set is automatically created.
一个新的图片集自动被创建。
Alternatively, you can create an empty image set by choosing Editor > New Image Set or by clicking the Add button (+) in the toolbar at the bottom of the set list and selecting New Image Set.
或者,你可以通过选择Editor > New Image Set 或者通过点击集合列表(set list)底部的(+)并选择New Image Set来创建一个空白图片集(image set)。
- To add another image to the image set, drag the image from the Finder to the appropriate image well in the set viewer.
要想给图片集添加另外的图片,只需要把Finder中图片拖入查看设置区(set viewer)中合适的图片框即可。如下图:
Alternatively, you can add images by choosing Editor > Import.
或者,你可以通过选择Editor > Import方法来添加图片。
Image sets are used to group different resolutions of the same image. This allows one app to target multiple size classes or to target specific devices and orientations. For help adding more resolutions to an image set, see the relevant article on Customizing Image Sets linked to below in Related Articles.
图片集是用来把同一图片的不同分辨率尺寸图放到一起。这样让应用程序可以指向多个尺寸类或指向不同的特定设备或不同方向。 关于如何向一个图片集里添加更多不同的分辨率图片,查看下面相关的Customizing Image Sets系列文章。
Related Articles
相关文章:
- Customizing Image Sets for Size Classes
- Customizing Image Sets for Devices
- Creating an Asset Catalog
- Removing Images and Sets