Created
October 8, 2013 07:11
-
-
Save tkoki/6880798 to your computer and use it in GitHub Desktop.
起動中の言語を取得する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *languages = [NSLocale preferredLanguages]; | |
if ([[languages objectAtIndex:0] isEqualToString:@"ja"]) { | |
// 日本語での処理 | |
} else { | |
// それ以外での処理 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment