gpt4 book ai didi

ios - 你能打开没有url方案的ios应用程序吗

转载 作者:行者123 更新时间:2023-12-01 16:42:48 25 4
gpt4 key购买 nike

你好,我正在用 Rubymotion 创建一个应用程序,其中一个功能是打开另一个应用程序,但我意识到目标应用程序没有在 info.plist

中使用 URL Scheme 模型

你知道我应该如何破解它吗?

我认为这可能是因为应用程序推广网站嵌入了 Smart App Banner ...操作系统是如何做到这一点的?

谢谢

最佳答案

你打开的是什么应用?

您可以考虑使用 UIDocumentInteractionController,但是您需要一个文件才能打开...

文档:UIDocumentInteractionController

例如,严重依赖 SugarCube 助手:

file = "instagram.igo".document_path
image.nsdata(:jpg, 1.0).write_to(file)
@interaction_controller = UIDocumentInteractionController.interactionControllerWithURL(file.fileurl)
@interaction_controller.delegate = self
@interaction_controller.UTI = "com.instagram.exclusivegram"
@interaction_controller.annotation = {"InstagramCaption" => status}
@interaction_controller.presentOpenInMenuFromRect([[0, 0], [0, 0]], inView: self.view, animated: true)

关于ios - 你能打开没有url方案的ios应用程序吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22765994/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com