【问题标题】:WKWebView openurl in another applicationWKWebView openurl 在另一个应用程序中
【发布时间】:2020-06-02 07:44:53
【问题描述】:

我正在使用 WKWebView 在我的应用程序中显示 YouTube。 当我加载 youtube 页面时,有时会在我的 iPhone 设备中打开 YouTube 应用。

这是我正在使用的代码:

NSURLRequest * req = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.youtube.com/"]];
[self.loginWebView loadRequest:req];

有一个选项可以检测弹出并阻止它吗?

【问题讨论】:

    标签: ios objective-c swift iphone wkwebview


    【解决方案1】:

    我确实想将此作为评论发布,但低代表不会让我这样做。所以,你可能想看看这个话题:

    Disable WKWebView for opening links to redirect to apps installed on my iPhone

    【讨论】:

      猜你喜欢
      • 2020-03-20
      • 1970-01-01
      • 1970-01-01
      • 2018-03-24
      • 2012-03-13
      • 1970-01-01
      • 1970-01-01
      • 2019-02-23
      • 1970-01-01
      相关资源
      最近更新 更多