开发者

How to retrieve the iPhone's locale setting

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?

Thanks!

/Niklas


NSLocale *curLocale = [NSLocale currentLocale];

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜