Reputation: 894
Is the name of localized "jp" or "jap"
in
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"jp or jap"] forKey:@"AppleLanguages"];
Upvotes: 0
Views: 798
Reputation: 17478
You can sort your array as following
NSArray *sortedArray = [yourArray sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
localizedCaseInsensitiveCompare
is method in NSString.
Upvotes: 2
Reputation: 1692
try with this,
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"ja_JP"] forKey:@"AppleLanguages"];
Upvotes: 1