The Pursuit of Happyness


Android


 Currency currency = Currency.getInstance(Locale.getDefault());

 String currencyCode = currency.getCurrencyCode();



iOS


 
 NSString *localeIdentifier = [[NSLocale availableLocaleIdentifiers] objectAtIndex:72];

 NSLocale *selectedLocale = [[NSLocale alloc] initWithLocaleIdentifier:localeIdentifier];

 NSString *currencyCode = [selectedLocale objectForKey:NSLocaleCurrencyCode];




Comment +0