具有本地化功能的通用应用程序-启动画面 [英] universal app with localization - splash screen

查看:96
本文介绍了具有本地化功能的通用应用程序-启动画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有某些本地化功能的通用应用程序.我的问题是关于启动画面.

I have a universal app with some localization. My problem is about splash screens.

我需要6个启动画面. iPad,iPhone,iPhoneRetina(英语)和iPad,iPhone,iPhoneRetina(本地郎)

I need 6 splash screens. iPad, iPhone, iPhoneRetina (in English) and iPad, iPhone, iPhoneRetina (in Local Lang)

我有一个用于iPad English Splash的文件,名为"Default.png".在项目导航器上选择此文件时,可以单击"+"号来添加本地化版本.结果,我有2个文件:Default.png(英语)和Default.png(本地语言) 到目前为止,一切都还可以.

I have a file for iPad English Splash, named "Default.png". When I select this file on project navigator, I can add localized version by clicking "+" sign. As a result I have 2 files: Default.png (English) and Default.png (Local Lang) So far eveything is ok.

但是当我尝试将"Default〜iphone.png"文件添加到项目中时,它没有被本地化.当我单击"+"号时,XCode崩溃.

But when I try to add "Default~iphone.png" file to the project, it doesn't get localized. XCode crashes when I click on the "+" sign.

将6个(3种设备x 2种语言)初始屏幕添加到项目的正确方法是什么?

What is the proper way of adding 6 (3 devices x 2 languages) splash screens to the project ?

推荐答案

如果要添加它们而不会XCode崩溃,则可以使用该技巧:

If you want to add them without XCode crash, you can use that trick :

关闭您的项目.进入Finder中的项目文件夹,在合适的位置自己创建(如果尚不存在)en.lproj,es.lproj,...文件夹,并将本地化的图像放入其中.

Close your project. Go into your project folder into the Finder, create (if they are not already there) yourself the en.lproj, es.lproj, ... folders needed at the right place, and put your localized images inside them.

然后打开您的项目,转到项目信息面板,删除所有可能的本地化(在询问时保留文件),然后重新添加这些本地化(仍在项目属性中).

Then open your project, go to the project info panel, remove all possible localizations (keeping the files when asked), then add those localizations back (still in the project properties).

然后,它们将在文件资源管理器树中显示为魅力.

Then they will be shown like a charm in the file explorer tree.

这篇关于具有本地化功能的通用应用程序-启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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