Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

xcode - IOS: launch image multiple language

I have a multiple language app. My problem is launch image, what's the way to use a launch image according to language of device. Is there something in info.plist file?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...