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. docker安全最佳实践概述

    /************************************************* * Author : Samson * Date : 08/07/2015 * Test plat ...

  2. Git bare repo with multiple branches

    http://stackoverflow.com/questions/9324762/git-bare-repo-with-multiple-branches Q: I want to make a ...

  3. Hadoop 服务器配置的副本数量 管不了客户端

    副本数由客户端的参数dfs.replication决定(优先级: conf.set > 自定义配置文件 > jar包中的hdfs-default.xml)如果前两个都没有,就用最后一个ja ...

  4. caffe学习--使用caffe中的imagenet对自己的图片进行分类训练(超级详细版) -----linux

    http://blog.csdn.net/u011244794/article/details/51565786 标签: caffeimagenet 2016-06-02 12:57 9385人阅读  ...

  5. jQuery UI Autocomplete是jQuery UI的自动完成组件

    支持的数据源 jQuery UI Autocomplete主要支持字符串Array.JSON两种数据格式. 普通的Array格式没有什么特殊的,如下: ? 1 ["cnblogs" ...

  6. Spring Cloud Config的配置中心获取不到最新配置信息的问题

    Spring Cloud Config的配置中心获取不到最新配置信息的问题 http://blog.didispace.com/spring-cloud-tips-config-tmp-clear/

  7. 九度OJ 1129:Skew数 (大数运算)

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:734 解决:548 题目描述: 在 skew binary表示中, 第 k 位的值xk表示xk*(2k+1-1).  每个位上的可能数字是0 ...

  8. 判断Java数组是否包含某个值

    下面给出四种方式,其中最有效率的还是loop方式,有兴趣的话可以测试一下: 代码如下: public boolean findStr(String[] args,String str){ boolea ...

  9. DIY固件系列教程——实现开机LOGO三屏动画的完全替换【转】

    本文转载自:http://blog.csdn.net/sdgaojian/article/details/9192433 本教程需要用到如下工具:1,7Z压缩工具2,AddCrc32效验工具3,raw ...

  10. UESTC - 900 方老师炸弹 —— 割点

    题目链接:https://vjudge.net/problem/UESTC-900   方老师炸弹 Time Limit: 4000/2000MS (Java/Others)     Memory L ...