Localization strings file not working with xib in Xcode 5

允我心安 提交于 2019-12-05 10:12:38

In Xcode 6 you need to select "Use Auto Layout" in order for the strings file to be used. There is a known problem if you do the following:

1)Your storyboard or XIB uses size classes.
2)The base localization and build target are set to Universal. 
3)The build target is for iOS 7.0

You can use the Localizable Strings to generate a localized XIB file automatically through Xcode, which is what you need to do if you do not enable Auto Layout.

It's a bug in Xcode. All you have to do is to convert the Localizable Strings file to an Interface Builder file. You can do that under the Localization section on the interface builder's file properties.

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