what is the difference between [NSLocale preferredLanguages] and [[NSUserDefaults standardUserDefaults] objectForKey:@“AppleLanguages”]?

后端 未结 2 1236
生来不讨喜
生来不讨喜 2021-01-25 10:30

What is the difference between [NSLocale preferredLanguages] and [[NSUserDefaults standardUserDefaults] objectForKey:@\"AppleLanguages\"]?

2条回答
  •  感情败类
    2021-01-25 11:30

    You should use [NSLocale preferredLanguages], use [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"] if you are supporting Mac OS X 10.4 or earlier.

提交回复
热议问题