gpt4 book ai didi

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

转载 作者:搜寻专家 更新时间:2023-10-31 19:30:34 26 4
gpt4 key购买 nike

我的应用已注册 URL Schemes:

enter image description here

但我不知道如何打开该应用程序,因为我无法在扩展中使用 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 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33522932/

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