Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道并打印我在设备上更改的语言环境名称。有什么办法可以打印出来。打印 NSLocale 对象没有帮助。
NSLocale为您希望单词出现的语言创建一个,然后-displayNameForKey:value:在NSLocale对象上使用以获取NSLocaleIdentifier键的显示名称。
NSLocale
-displayNameForKey:value:
NSLocaleIdentifier
此方法的文档有一个示例,可以准确地向您展示您要查找的内容。