【发布时间】:2019-09-24 05:19:51
【问题描述】:
我正在使用 WKWebView 显示来自远程 URL 的 pdf 文件。它在iOS 12 中运行良好,但在iOS 13 中它只是显示空白屏幕。
我使用图像 url 访问了同一个域并且效果很好,但它仅与 pdf 文件存在一些问题。
let myURL = URL(string:"somefileurl.pdf") // If I hit this url in safari, It will download a pdf file.
let myRequest = URLRequest(url: myURL!)
webViewPdf.load(myRequest)
【问题讨论】: