20得票4回答
如何在iOS移动设备上使用Swift 3.0编写按钮操作以打开文档文件(例如.pdf、.doc、.docx)?

我需要打开UIDocumentPickerViewController,并且应该允许用户选择所有类型的文件,例如(.pdf、.doc)文件。我使用了UIDocumentPickerViewController方法。 我的代码: UIDocumentPickerDelegate, UIDoc...

20得票1回答
UIDocumentMenuViewController关闭呈现视图控制器。

我有一个VC "A",它以模态方式呈现VC "B"。B呈现了一个UIDocumentMenuViewController。 UIDocumentMenuDelegate协议在B中实现。 一旦调用了documentMenuWasCancelled(_ documentMenu:)或docume...