NSLocale *locale = [NSLocale currentLocale];
NSString* conCode = [locale objectForKey:NSLocaleCountryCode];
NSString* conName = [locale displayNameForKey:NSLocaleCountryCode value:conCode];
국가 리전 코드 값은
http://lifehack.kr/90095666575
참고 하시면 됩니다.!!!! 뒤에 큰 대문자들입니다 ^^
========================================== 언어 설정 값 =====================================
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defs objectForKey:@"AppleLanguages"];
NSString* currentLanguage = [languages objectAtIndex:0];
입니다 ^^
예를 들자면..
if([currentLanguage usEqualToString:@"ko"])
{
******
}
else
{
********
}
출처 : http://gods2000.tistory.com/
'□컴퓨터 관련 > ★iPhone Developer' 카테고리의 다른 글
한글완성형(EUC-KR)을 iPhone/Mac에서 사용할 수 있는 언어셋으로 변환하기 (2) | 2011.01.31 |
---|---|
UITextView 설정하기! (0) | 2011.01.25 |
Google AdMob (0) | 2011.01.21 |
iPhone 어플리케이션을 앱스토어에 배포하는 과정 (0) | 2011.01.17 |
자주 쓰는 NSString Method (0) | 2010.12.20 |
NSString <-> NSData 상호 변환 (0) | 2010.12.20 |
UITextField X Button Insert (0) | 2010.12.14 |