如何从扩展程序中打开iOS应用程序?

如何从扩展程序中打开iOS应用程序?,第1张

概述我的应用程序已注册URL方案: 但我不知道如何打开该应用程序,因为我不能在扩展中使用UIApplication.sharedApplication().有可能吗? Apple的 documentation说: A Today widget (and no other app extension type) can ask the system to open its containing app 我的应用程序已注册URL方案:

但我不知道如何打开该应用程序,因为我不能在扩展中使用UIApplication.sharedApplication().有可能吗?

解决方法 Apple的 documentation说:

A Today Widget (and no other app extension type) can ask the system to open its containing app by calling the openURL:completionHandler: method of the NSExtensionContext class.

总结

以上是内存溢出为你收集整理的如何从扩展程序中打开iOS应用程序?全部内容,希望文章能够帮你解决如何从扩展程序中打开iOS应用程序?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1048072.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存