0

I can set the language for every single element through

@property(nonatomic, retain) NSString *accessibilityLanguage

and I remember that somewhere I came across a mention about a way to set the language for ALL elements at once. I think it was not a category on NSObject but an API that Apple provided. Can'T find it anymore.

Is there an API or was it really just the NSObject category?

4

1 回答 1

1

您可以通过设置accessibilityLanguage. [UIApplication sharedApplication]因此,要将语言设置为美国英语,请使用[[UIApplication sharedApplication] setAccessibilityLanguage:@"en-US"];

感谢 zavié:https ://stackoverflow.com/a/21284038/2728579

于 2014-03-10T14:01:08.473 回答