IOS: country code

后端 未结 3 1914
逝去的感伤
逝去的感伤 2020-12-28 22:15

I have this code to obtain a code country, but I want to see all code country available; then I can do some \"if\" to implement in my app

NSLocale *local         


        
3条回答
  •  甜味超标
    2020-12-28 22:41

    Run this code to see all available localizers:

    NSLog(@"availableLocaleIdentifiers: %@", [NSLocale availableLocaleIdentifiers]);
    

    You can do the same thing for commonISOCurrencyCodes, ISOCountryCodes, ISOCurrencyCodes, ISOCurrencyCodes, preferredLanguages.

提交回复
热议问题