NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSArray *languages = [defaults objectForKey:@"AppleLanguages"];
NSString *currentLanguage = [languages objectAtIndex:0];
if([currentLanguage compare:@"de"] == NSOrderedSame)
NSLog(@"Its German");
else if([currentLanguage compare:@"en"] == NSOrderedSame)
NSLog(@"Its English");
No comments:
Post a Comment