如何在iOS中使用UIDocumentInteractionController共享远程URL(https:// ...)

时间:2018-07-05 06:17:36

标签: ios swift share uidocumentinteraction

我想在我的应用中使用UIDocumentInteractionController共享远程URL。我该怎么办?

这是我的代码:

let documentInteractionController = UIDocumentInteractionController.init()
documentInteractionController.name = dataUrl
documentInteractionController.delegate = self
documentInteractionController.uti = "public.content"
documentInteractionController.presentPreview(animated: true)

0 个答案:

没有答案