Customizing Image Sets for Size Classes

Add images to a set that are customized for display in different size classes supported by your app.

应用程序也支持把图片存入一个自定义集合,用来在不同的尺寸类中显示。
  1. In the set list, select an image set.

    在集合列表(set list)中,选择一个图片集。

  2. Open the utilities area for the workspace window by clicking the Show Utilities button ().

    点击()显示工作区窗口的工具区(utilities area).

  3. In the inspector bar, click the Attributes Inspector button ().

    在inspector 栏,点击属性检查按钮 ()。

  4. Choose Universal from the Device pop-up menu.

    在设备弹出菜单那选择Universal.

  5. Choose a specific size class from the Width or Height size pop-up menu or from both.

    在width 或者Height弹出菜单中选择一个指定的尺寸类(size class)。

    After you choose a size class, Xcode adds placeholders for image files in the set viewer area.

    选择完成后,Xcode 在图片集查看区(set viewer)为图片文件添加占位符。

The size class settings for a placeholder image are shown in coded format following the size of the image. The format is [horizontal size class, vertical size class]. Each size class can be one of three values:

size class(尺寸类) 为一个占位图片的格式是把图片的尺寸以编码格式显示。 格式为[横向尺寸类 纵向尺寸类]. 每个尺寸类 可以是以下三个值中的一个:

Any size class 任何尺寸类

Regular size class 常规尺寸类

Compact size class  紧凑尺寸类

For example,  is a 2x resolution image used with a compact horizontal size class and any vertical size class.

比如, 2x[- *] 是一个2倍分辨率图片,它的尺寸类是紧凑横向尺寸类和纵向任何尺寸类。

Size classes require iOS 8 or later. If your app will support earlier versions of iOS, you can customize image sets for specific devices. See the link in Related Articles below. Size classes are note supported on OS X.

尺寸类要求iOS8或以上版本: 如果你的应用程序支持iOS早期版本,你可以为指定的设备自定义图片集。请看下面的相关文章。 OS X也支持尺寸类。

Asset Catalog Help (七)---Customizing Image Sets for Size Classes的更多相关文章

  1. 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 device ...

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

  3. Asset Catalog Help (十一)---Removing Images and Sets

    Removing Images and Sets Optimize the size of an asset catalog by removing unused images or sets. 通过 ...

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

  5. Asset Catalog Help (九)---Changing Image Set Names

    Changing Image Set Names Use the Attributes inspector to edit a set’s name. 使用属性检查器(Attributes inspe ...

  6. iOS-----About Asset Catalog

    About Asset Catalogs Use asset catalogs to simplify management of images that are used by your app a ...

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

    Creating an Asset Catalog Create an asset catalog to simplify management of your app’s images. 创建一个a ...

  8. 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图标存 ...

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

随机推荐

  1. ffmpeg h264编码 extradata 为空

    ffmpeg h264编码的例子前面的文章已经介绍,本来主要讲述影响AVCodecContext extradata是否为 空的配置项.如果要求open编码器以后AVCodecContext extr ...

  2. Topcoder SRM625 题解

    给出一个字符串求是palindrome和anagram的比率是多少. 知识点: 1 DBL_MAX 64位double的最长数大概是1.7E308,非常大非常大,比long long大上不知多少倍.故 ...

  3. 「零秒思考」是个神话,不过这款笔记术你值得拥有zz

    今天读完了赤羽雄二的<零秒思考>,作者是一位在麦肯锡公司工作了 14 年的资深顾问.依照作者的说法,「零秒思考」指的是: 瞬间便能认清现状, 瞬间便能整理问题, 瞬间便能考虑出解决办法, ...

  4. 系统安全-LDAP

    LDAP服务器 1.目录服务  目录是一个为查询.浏览和搜索而优化的专业分布式数据库,它呈树状结构组织数据,就好像Linux/Unix系统中的文件目录一样.目录数据库和关系数据库不同,它有优异的读性能 ...

  5. HSSFWorkbook

    public ActionResult excelPrint() { HSSFWorkbook workbook = new HSSFWorkbook();// 创建一个Excel文件 HSSFShe ...

  6. php源码zend_do_begin_namespace函数详解

    version:5.6.21 file:Zend/zend_compile.c line:7055-7152 void zend_do_begin_namespace(const znode *nam ...

  7. 初探IO复用

    前言 在之前的文章中,我具体实现了一个并发回射服务器并给它加载了僵尸子进程的自动清理信号机制.在正常情况下,它已经可以很好地工作了,但它能否合理应对一些特殊情况呢? 问题发现 先来看看当服务器的客户子 ...

  8. sql无限级树型查询

    表结构如下: 表数据如下: 一提到无限级,很容易想到递归,使用sql 的CET语法如下 with menu(Id,Name,ParentId,Level) as ( select Id,Name,Pa ...

  9. Communicating sequential processes

    the-way-to-go_ZH_CN/01.2.md at master · Unknwon/the-way-to-go_ZH_CN https://github.com/Unknwon/the-w ...

  10. holiday和vacation的区别

    holiday:假日vacation:假期a.对于英国人或者澳大利亚人来说,“假日”的意思等同于“假期”(尽管他们很少用“假期”)b.如果你是美国人,“假日”是指一个特殊的日子,好像圣诞节,而“假期” ...