ios – 如何在Interface Builder中显示备用语言? (Xcode5)

概述iOS项目使用基本本地化,并为英语和德语的故事板设置可本地化的字符串.当我更改模拟器的语言时,一切都正常工作,但有些文本被德语截断.我想在“界面”构建器中查看德语文本,以便更容易修复文本标签和字段上的约束. 看起来这只是一个视图设置或其他东西,但我似乎找不到任何明显的东西. 看起来这对 Xcode 5来说是不可能的,但它将成为Xcode 6的一部分: To preview a localizati iOS项目使用基本本地化,并为英语和德语的故事板设置可本地化的字符串.当我更改模拟器的语言时,一切都正常工作,但有些文本被德语截断.我想在“界面”构建器中查看德语文本,以便更容易修复文本标签和字段上的约束.

看起来这只是一个视图设置或其他东西,但我似乎找不到任何明显的东西.

解决方法 看起来这对 Xcode 5来说是不可能的,但它将成为Xcode 6的一部分:

To prevIEw a localization in Interface Builder

In project navigator,select the .storyboard or .xib file you want to prevIEw. Choose VIEw > Assistant Editor > Show Assistant Editor. In the assistant editor jump bar,open the Assistant pop-up menu,scroll to the PrevIEw item,and choose the .storyboard or .xib file. If a prevIEw of the app’s user interface doesn’t appear in the assistant editor,select the window or vIEw you want to prevIEw in the icon or outline vIEw. In the assistant editor,select the localization you want to prevIEw from the language pop-up menu in the lower-right corner.
A prevIEw of the localization appears in the assistant editor. If you select a real language,strings that do not need to be localized or need to be localized,but currently are not,appear in upper case.

引自“Testing Your Internationalized App”

总结

以上是内存溢出为你收集整理的ios – 如何在Interface Builder中显示备用语言? (Xcode5)全部内容,希望文章能够帮你解决ios – 如何在Interface Builder中显示备用语言? (Xcode5)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1071933.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存