为什么 UIActivityViewController 不显示本地化的取消字符串?

Why UIActivityViewController doesn't display localized cancel string?

如下截图所示:

尽管设备语言已设置为阿拉伯语(您可以通过检查状态栏和activity 视图控制器标题来识别它)。但是,取消按钮仍然具有 "Cancel" 标题;由于我们无法更改其标题,我认为它应该自动更改取决于设备语言——在我的情况下是阿拉伯语——(要本地化),如本 answer.

中所述

我在这里错过了什么?

我找到了一个适用于我的设备语言设置为阿拉伯语的解决方案。
转到您的 Info.plist 并添加 Localized resources can be mixed 和布尔值 YES

Core Foundation Keys所述:

CFBundleAllowMixedLocalizations

CFBundleAllowMixedLocalizations (Boolean - iOS, macOS) specifies whether the bundle supports the retrieval of localized strings from frameworks. This key is used primarily by Foundation tools that link to other system frameworks and want to retrieve localized resources from those frameworks.