NSLocale currentLocale always returns “en_US” not user's current language

后端 未结 9 1684
夕颜
夕颜 2020-11-30 21:28

I\'m in the processes of internationalizing an iPhone app - I need to make programmatic changes to certain views based on what the user\'s current locale is. I\'m going nut

9条回答
  •  天命终不由人
    2020-11-30 21:31

    For us the issue was that we were overriding the application language and application region in our dev scheme. Make sure that the Application Language is set to System Language in the scheme options (Edit Scheme -> Options).

提交回复
热议问题