是否可以从 iOS 应用程序在 iOS 中打开 Google chrome 和 Opera 中的链接(例如 iOS 中的 safari)
我需要澄清一下,是否可以从 iOS 应用程序在 Google Chrome 和 Opera 浏览器(例如 iOS 中的 Safari)中打开 URL。
任何人的帮助将不胜感激。
I need a clarification that Is it possible to open a URL in Google Chrome and Opera browsers like Safari in iOS from iOS Application.
Anyone's help will be deeply appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 Google Chrome,您可以在此处查看来自 google 的一些示例代码,展示如何在 Chrome 而不是 Safari 中加载 URL https://developers.google.com/chrome/mobile/docs/ios-links
Opera 支持“ohttp”方案,因此也可以执行类似的操作。
For Google Chrome you can look here for some example code from google showing how to load a URL in Chrome instead of Safari https://developers.google.com/chrome/mobile/docs/ios-links
Opera supports the "ohttp" scheme so a similar thing can be done for that too.
这是要使用的 URLOpener 类,
用法,
URLOpener.h
URLOpener.m
Here is a URLOpener class to use,
Usage,
URLOpener.h
URLOpener.m
偶然发现了这个...@karim 在这里提供了很棒的代码。我遇到了类似的问题,最终写了 Choosy - 你可以在你的项目中使用它来添加对许多第三个的支持-派对应用程序。
Stumbled on this... @karim provided awesome code here. I ran into similar problem and eventually wrote Choosy - you can use it in your project to add support for many 3rd-party apps.