如何检索iPhone的语言环境

如何检索iPhone的语言环境

本文介绍了如何检索iPhone的语言环境设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用它搜索了一下,但是我找不到它令我有些惊讶.

I have googled for it but I am a bit surprised that I couldn't find it.

我只想访问设备配置的语言环境.我试图找到如何列出所有系统属性的方式(以防万一我可以在那里找到语言环境),但甚至找不到该怎么做的方法.我知道(/认为)我以前已经检索过系统属性,但是我还记得在谷歌搜索时很难找到该信息.也许我在搜索时使用了错误的单词...

I just want to access what locale the device has configured. I tried to find how to list all system propreties (in case I could find the locale there) but couldn't even find how to do that. I know(/think) I have retrieved the system properties before, but I also remember it wasn't easy to find that information when googling for it. Perhaps I am using the wrong words when searching...

如何识别实际设备上配置的语言环境(和/或系统属性)?

How do I identify what locale (and/or system properties) that is configured on the actual device?

谢谢!

/尼古拉斯

推荐答案

NSLocale *curLocale = [NSLocale currentLocale];

http://developer.apple.com/iphone/library/documentation/cocoa/reference/Foundation/Classes/NSLocale_Class/Reference/Reference.html

这篇关于如何检索iPhone的语言环境设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 06:06