반응형
Query an english locale for the displayName
like this:
NSLocale *locale = [NSLocale currentLocale];
NSString *countryCode = [locale objectForKey: NSLocaleCountryCode];
NSLocale *usLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease];
NSString *country = [usLocale displayNameForKey: NSLocaleCountryCode value: countryCode];
반응형
'모바일개발(Mobile Dev) > IOS개발(ObjectC)' 카테고리의 다른 글
Xcode 6 Strange Bug: Unknown class in Interface Builder file (0) | 2015.12.11 |
---|---|
ABOUT PLIST (0) | 2015.12.10 |
Facebook Login in iOS App (0) | 2015.12.06 |
Rename a Project in Xcode (0) | 2015.12.06 |
Implementing Pull-to-Refresh in xcode (0) | 2015.11.30 |