我想将我的应用程序中的图像传输到从应用程序商店下载的第三方iOS应用程序 . 请注意,我无法访问第三方应用的代码 . 但是,我有以下有关第三方应用程序的信息:

  • 当我使用UIDocumentInteractionController时,我可以看到列表中的应用程序,这表明此应用程序已注册自己能够处理图像类型数据 . 我可以选择应用程序,并在应用程序内打开图像 . 请注意我不能使用UIDocumentInteractionController作为解决方案,因为我的应用程序必须只能在这个特定的第三方应用程序中打开图像 .
if let filePath = Bundle.main.path(forResource:"image", ofType: "png") {
        let documentController = UIDocumentInteractionController.init(url: URL.init(fileURLWithPath: filePath))
        documentController.presentOptionsMenu(from: self.firstButton.frame, in: self.view, animated: true)

    }
    else{
        print("no file found")
    }
  • 我也能够获得此应用使用的自定义网址,我可以使用以下代码直接打开此应用:
let url = URL(string: "customurl:exampleuser@example.com")
UIApplication.shared.openURL(url!)

customurl是这个应用程序的url schem .

有什么方法可以让我使用以上关于这个第三方应用程序和 be able to open a image into this third party app directly on a button click from my app 的两条信息吗?