Objective c 如何在ios中使用objective c更改应用程序语言运行时而不重新启动应用程序?

Objective c 如何在ios中使用objective c更改应用程序语言运行时而不重新启动应用程序?,objective-c,Objective C,目前我正在使用下面的代码来更改应用程序语言 [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"AppleLanguages"]; [[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects: @"French", nil] forKey:@"AppleLanguages"]; [[NSUserDefaults standardUserDe

目前我正在使用下面的代码来更改应用程序语言

[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects: @"French", nil] forKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] synchronize];
但它可以重新启动应用程序

我想在从下拉列表中选择时更改应用程序语言,而无需重新启动应用程序。

只需使用此选项更改语言,就可以了

使用NSLocalizedString(,)设置语言文本
然后再次按下相同的viewController