ios - 有没有办法在 iOS 中为不同的语言/区域设置不同的 Default.png(启动图像)?

标签 ios localization splash-screen build-settings

<分区>

Possible Duplicate:
Localization of Default.png is not working

我的启动画面中有英文文本,所以当用户设置不同的语言时,我希望能够有不同的启动图像。

这可能吗?

最佳答案

是的,这是可能的。与本地化所有资源的方式几乎相同。 您只需提供一个 Default.png 图像,然后启用您感兴趣的所有语言。结果是您将在各自的文件夹中为每种语言获取图像副本。然后根据需要编辑(或覆盖)每个图像。我现在已经对其进行了测试,并且运行良好(在 iOS 5 上,但我相信旧版本也是如此)。这是一个截图,方便引用:

enter image description here

编辑: 关于这是否是一个好的做法的任何疑问,这直接来自 Apple's documentation :

In addition to including the launch images at the top level of your bundle, you can also include localized versions of your launch images in your app’s language-specific project subdirectories. For more information on localizing resources in your app, see Table 6-2.

关于ios - 有没有办法在 iOS 中为不同的语言/区域设置不同的 Default.png(启动图像)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10570757/

相关文章:

android - CodenameOne 的 iOS 构建失败

ios - swift 中的动画 : Circular Dashed Loading Bar?

ios - 如何在 Swift 的 TableViewController 中向自动后退按钮添加 Action

android - 哪种AR(增强现实)框架(Android & iOS)适合我的情况

c# - 如何将 .config 文件或依赖项目包含到主项目的 bin 文件夹中?

Android 启动画面错误

iphone - 带区域(de_LU)的iOS本地化

ios - 如何本地化 UIBarButtonItem ?代码

java - 线程 "AWT-EventQueue-0"java.lang.NullPointerException 中出现异常(面板在完全加载之前显示?)

android - 利用 Android 导航组件处理具有初始屏幕 Activity 的深层链接