Asset Catalog Help (三)---Adding Image Sets

Adding Image Sets

Organize versions of your images in image sets, which you can add to an asset catalog.

你可以用图片集组织管理不同版本的图片 ,图片集可以放入一个asset catalog.

  1. In the project navigator, select an asset catalog.

    在项目导航区(project navigator)中,选择一个asset catalog.

  2. 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)。

  3. 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

相关文章:

时间: 2024-10-30 16:24:30

Asset Catalog Help (三)---Adding Image Sets的相关文章

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里可以简化图片管理. In the project navigator, select an asset catalog. 在项目导航区,选择一个asset catalog. Choose Editor > New OS X Icon. 选择Editor > New

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 different size classes supported by your app. 应用程序也支持把图片存入一个自定义集合,用来在不同的尺寸类中显示. In the set list, select an image set. 在集合列表(set list)中,选择一个图片集. Open the ut

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 worksp

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的大小. Do one of the following: 可以使用以下方法: Remove an image from its set by Control-clicking the image and choosing Remove Sel

Asset Catalog Help (一)---About Asset Catalogs

About Asset Catalogs Use asset catalogs to simplify management of images that are used by your app as part of its user interface. 使用asset catalogs可以简化应用程序中需要使用图片的管理,把它们作为用户界面的一部分. An asset catalog can include: 一个asset catalog可以包括以下内容: Image sets: Use

Asset Catalog Help (二)---Creating an Asset Catalog

Creating an Asset Catalog Create an asset catalog to simplify management of your app’s images. 创建一个asset catalog来简化管理应用程序图片. Choose File > New > File. 选择File > New > File. Under iOS or OS X, select Resource. 在iOS 或 OS X中选择 Resource. Select Ass

【译】4个你需要知道的Asset Catalog的秘密

本文由CocoaChina译者 @唧唧歪歪 翻译,作者:Hector Matos 原文:4 XCODE ASSET CATALOG SECRETS YOU NEED TO KNOW 恶梦 想象你正在干活,你的上级要求你在工程中加入一些图片.你找到团队中的设计师(如果你们有一个的话),鼓起勇气,问他要这些图片.不过,通常他都会忙得根本没时间帮你.因为他要做的活儿比你还多.说实话,你到底见过一个设计师有多少活儿要做吗?!简直多到令人发指啊!所以你最不想做的就是成为那个再给他加活儿的人了.特别是那些活

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 resizable center area of the image and to optionally specify end caps, which are areas of the image that should not be filled by the resizable area.

ERROR ITMS-90682: Invalid Bundle - The asset catalog at 'Payload/XXXXX/Assets.car' can't contain 16-bit or P3 assets if the app supports iOS 9.3 or earlier.

刚升级Xcode 8, 幺蛾子又出现了.提交的时候出了这个问题. BTW,感谢google.以下为解决方案:‘ 在 Xcode 8 中,当你资源文件中[含有16位图]或者[图片显示模式γ值为'P3']且iOS targets设定为iOS 9.3以下就会出现这个问题. 如果你的app需要支持广色域显示的话,那你必须得把target设置成iOS 9.3+,相反,如果你的app不需要支持广色域且你想兼容 iOS 9.3 之前的项目,你就得把所有的16位的或者显示模式为'P3'图片全都替换成8位模式的S