Customizing Image Sets for Devices

Add images to a set that are customized for display on the devices supported by your app.

应用程序支持把图片加入一个自定义图片集,用来在不同设备商显示。 
  1. In the set list, select an image set.

    在图片集列表中,选择一个图片集。

  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. From the Device pop-up menu, choose Device Specific.

    在Device弹出菜单那,选择Device Specific.

  5. 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或以上版本的应用程序,尺寸类可以提供一种更加灵活的替代选择。

最新文章

  1. bootStrap树形目录组件
  2. jQuery插件入门
  3. html a标签包含a标签,浏览器的行为处理
  4. Making the Grade(POJ3666)
  5. Oracle补习班第一天
  6. Android Studio doesn't list my android phone
  7. Linux 下安装配置 JDK
  8. HTTPS原理
  9. node工具--connect
  10. c++11编码规范 NULL还是nullptr
  11. HDOJ 1176 免费馅饼 -- 动态规划
  12. Codeforces Round #198 (Div. 2) —— C
  13. C语言实现双向链表删除节点、插入节点、双向输出等操作
  14. Android开发手记(17) 数据存储二 文件存储数据
  15. Javascript内存泄漏
  16. 深入理解Activity的启动模式
  17. Cucumber 相关资源
  18. PHP防CC攻击代码
  19. [design-patterns]设计模式之一策略模式
  20. HTML第五章总结

热门文章

  1. Python3 与 C# 面向对象之~继承与多态 Python3 与 C# 面向对象之~封装 Python3 与 NetCore 基础语法对比(Function专栏) [C#]C#时间日期操作 [C#]C#中字符串的操作 [ASP.NET]NTKO插件使用常见问题 我对C#的认知。
  2. ubuntu + lamp + laravel 环境配置
  3. 轻松搞定RabbitMQ(四)——发布/订阅
  4. MapReduce框架在Yarn上的具体解释
  5. wmware搬家
  6. JAVA RMI远程方法调用简单实例(转载)
  7. 面向资源操作的http请求
  8. J++ C#
  9. pdf文件的作成
  10. EF 编程经验