IOS:启动图像多语言 [英] IOS: launch image multiple language

查看:132
本文介绍了IOS:启动图像多语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该创建一个多语言应用程序;
我的问题是启动图像,根据设备语言使用启动图像的方式是什么。在plist文件中有什么内容吗?

I should to create a multiple language app; my problem is launch image, what's the way to use a launch image according to language of device. id there something in plist file?

推荐答案

解决方案是像项目中的任何其他资源一样本地化Default.png。从Xcode的项目列表中选择Default.png,在右侧窗格中找到Localization,然后只需添加新的本地化。之后,您可以更改所有本地化的文件。

The solution is to localize Default.png like any other resource in your project. Select Default.png from project list in Xcode, on the right pane find "Localization" and simply add new localizations. After that you can change the files to be different for all localizations.


  1. 在Xcode的项目摘要窗格中(谈论Xcode 4.2)添加启动正常情况下,一个或两个方向的图像。

  2. 启动图像将出现在项目文件列表中。选择其中一个。

  3. 展开Utilities(右侧窗格),您将看到以下组:Indentity and Type,Image Properties,Localization,... 。在本地化组中单击+按钮。您现在可以添加新的本地化(例如西班牙语)。

  4. 在项目列表中文件左侧的后面,您将看到一个展开按钮。单击按钮显示所有本地化的文件。

  5. 您的本地化Default.png文件将出现在项目目录的.lproj目录中。例如,您可以在en.lproj中手动滑动文件以更改英文启动图像。

  1. In project summary pane in Xcode (talking about Xcode 4.2) add launch images for one or both orientations as normally.
  2. Launch images will appear in your project files list. Select one of them.
  3. Expand Utilities (the pane on the right), you will see following groups: "Indentity and Type", "Image Properties", "Localization", ... . In localization group click "+" button. You can now add new localization (for example Spanish).
  4. After that on the left of your file in project list you will see an expand button. Click the button to show files for all localizations.
  5. Your localized Default.png files will appear in .lproj directories in project directory. You can for example manually swipe the file in en.lproj to change english launch image.

这篇关于IOS:启动图像多语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆