Migrating an iOS App Icon Set or Launch Image Set

Simplify image management by moving existing app icons and launch images into an asset catalog. When you store app icons and launch images in an asset catalog, Xcode automatically creates the required strings in the Info.plist file.

通过把存在的应用程序图标和启动图片移动到一个asset catalog来简化对图片的管理。 当你把应用程序图标和启动图片放进asset catalog, Xcode自动在Info.plist文件里创建相应地字符串。
 
  1. In the project navigator, select your target.

    在项目导航区(下图左侧)选择你的target.

  2. Open the General pane, and scroll to the App Icons section.

    打开General面板,滚动到App Icons区。(如下图)

     

    ../Art/XC_AC_H_migrate_icons_1_2x.png
  3. Click the Use Asset Catalog button.

    点击Use Asset Catalog按钮。

     

    A dialog appears offering up to two options.

    对话框提供了2个选项。

  4. Configure any options in the dialog.

    选中对话框中的任何选项。

    There are two possible options:

    那里有两种可能选项:

    • To choose a different asset catalog or to create a new one, click on the pop-up menu. Choose an existing asset catalog or choose New Asset Catalog to create a new one. The menu is shown when there is at least one asset catalog in the project.

      选择一个不同的asset catalog 或者创建一个新的asset catalog, 点击弹出菜单。 选择一个已经存在的asset catalog 或选择New Asset Catalog 来创建一个新的。

      The following figure shows choosing to create a new asset catalog instead of using the existing catalog.

      下图我们选择创建一个新的asset catalog.

      ../Art/XC_AC_H_migrate_icons_2_existing_catalog_2x.png
    • To migrate launch images, make sure the “Also migrate launch images” checkbox is selected.

      要想同时创建启动图片,确保“Also migrate launch images” 选框打上勾。

       

      ../Art/XC_AC_H_migrate_icons_2_no_catalog_2x.png

    Note: As of iOS 8.0 a Launch Screen File is the recommended way to show a launch image.

    注意:如果是iOS8.0后以上版本,推荐用一个启动屏幕文件来显示启动图。

  5. Click the Migrate button.

    点击“Migrate"按钮。

    If there is no asset catalog or if you selected New Asset Catalog from the pop-up menu, you will be prompted to create one. Canceling creation of the new asset catalog will cancel the migration.

    如果没有asset catalog或者你从弹出菜单中选择New Asset Catalog, 会提示你创建一个新的asset catalog. 取消创建新的asset catalog会同时取消该迁移(migration).

     

    The icons are migrated to the new or existing asset catalog.

    这样,图标就都被移动到新的或已经存在的asset catalog中。

     

After migrating your app icons, the App Icon and Launch Image area of the General pane will look like the following figure, except that the name in the App Icons Source pop-up menu is based on the filename of the original app icon.

当你移动完你的应用程序图标后,General面板的App Icon and Launch Images区会如下图所示,除了下图App Icons Source弹出菜单中 的名字是基于原始应用图标的文件名的。

../Art/XC_AC_H_migrate_icons_3_2x.png

To migrate a launch image set separately, go to the project navigator’s General pane, scroll to the Launch Images section, and follow the steps outlined above.

要想单独迁移启动图片,到项目导航区的General面板,滚动到Launch Images 区,按照以上步骤进行。

posted on 2015-04-15 13:24  cainiaozhang  阅读(586)  评论(0编辑  收藏  举报