Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Getting country name from NSLocale

$
0
0

Hi,

I've been ferreting around to find how to get from a locale code (eg en_US or whatever) to a proper country name "United States"

This works to get the code:

string localeCode = NSLocale.CurrentLocale.LocaleIdentifier;

How to get the country's name? I see references to RegionInfo and objective-c references like this: http://stackoverflow.com/questions/7169104/list-of-countries-using-nslocalecountrycode

But I haven't been able to find the displayNameForKey property anywhere.

Thanks


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>