UIDocumentInteractionController

UIDocumentInteractionController

我正在尝试使用UIAlertAction中的UIDocumentInteractionController将我的应用程序创建的文件的打开委托给另一个应用程序,如下所示:

// variable in the class
var documentController:UIDocumentInteractionController!

// the alertAction
let okAction = UIAlertAction(title: "Öffnen", style: .default, handler: { (_) in
            self.documentController = UIDocumentInteractionController(url: filePath)
            self.documentController.presentOpenInMenu(from: self.view.frame, in: self.view, animated: true)
        })


问题在于,即使设备语言有所不同,UIDocumentInteractionController仍始终以英语显示。
我错过了什么?
在哪里可以更改UIDocumentInteractionController的语言?

最佳答案

妈妈的意见,以改变发展语言的工作。现在,UIDocumentInteractionController中的所有内容都以德语显示。

关于ios - Swift UIDocumentInteractionController不使用设备语言,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47314043/

10-10 16:11