Android, iOS 통화 코드 가져오기
프로그래밍/Mobile Programming (Android, iOS)2014. 5. 30. 02:38
반응형
Android
Currency currency = Currency.getInstance(Locale.getDefault()); String currencyCode = currency.getCurrencyCode(); |
iOS
NSLocale *selectedLocale = [[NSLocale alloc] initWithLocaleIdentifier:localeIdentifier]; NSString *currencyCode = [selectedLocale objectForKey:NSLocaleCurrencyCode]; |
반응형