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.
我将我的应用程序本地化为多种语言,并且我想强制它以特定语言启动。我尝试在“AppleLanguages”键的用户默认值中设置我的语言,它有效,但在第一次启动时,语言仍然是英语。我需要在构建时更改语言。
更改 AppleLanguages 仅在您重新启动应用程序以在不关闭应用程序的情况下执行此操作时将包更改为所需语言的名称,以便 NSLocalizedString 从它而不是主包中读取。