IOS: launch image multiple language

让人想犯罪 __ 提交于 2019-11-27 01:54:32

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. 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.

Apple's HIG document advises that developers use launch images that don't have any text whatsoever. Take the contacts app for instance, it simply displays an empty UI so the user believes the app to be launching quicker.

So I suggest following this approach and removing any traces of language from the launch images.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!