Web View 无法加载 URL(www.example.com/index.html?jsonFooter=hideHeaderFooter) 我正在挑衅..这个 URL 在 web 浏览器中工作正常..经过很长时间深入研究这个问题,我观察到使用 web View 委托(delegate)方法查找错误我观察到 web kit 错误域 102..有人能告诉我如何解决这个问题吗?提前致谢..以下是我的示例代码
[linkWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/index.html?jsonFooter=hideHeaderFooter",urlStr]]]]
最佳答案
我遇到了同样的问题,但是这解决了它。 检查您的链接是 https 还是 http。如果是 http,您将需要更新信息 plist -> 应用程序传输安全设置 -> 允许 Web 内容中的任意加载 -> 是
关于ios - Web View 无法加载特定 URL(Web 工具包错误域 102),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32246423/