更改iOS中的应用程序语言设置而不是整个设备 [英] change application language setting in iOS not the whole device

查看:98
本文介绍了更改iOS中的应用程序语言设置而不是整个设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中有一个选项来更改我的应用程序语言(只是应用程序语言而不是整个系统),请您给我一些提示?

I want to have an option in my application to change my application language (just application language not the whole system), would you please give me some hints?

提前致谢,

我知道本地化!

推荐答案

您可以使用从Xcode设置的自定义构建标志来完成此操作。这样,您可以在本地化下运行应用程序,而不是更改设备的所有设置。

You can do this by using custom build flags that you set up from Xcode. This way you can run an application under a localisation rather than changing all the settings for the device.

我在 http://abizern.org/2012/03/18/simple-localisation-testing/

还有一个示例项目在Github上你可以用来看它的实际效果: https://github.com/Abizern/SimpleLocalisationTesting

And there is an example project on Github that you can use to see it in action: https://github.com/Abizern/SimpleLocalisationTesting

这篇关于更改iOS中的应用程序语言设置而不是整个设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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