我有一个带有WebView的ViewController。我正在使用以下代码加载PDF文件:
override func viewDidLoad() {
let path: String = NSBundle.mainBundle().pathForResource("file", ofType: "pdf")!
let url: NSURL = NSURL.fileURLWithPath(path)
let request: NSURLRequest = NSURLRequest(URL: url)
MagazineInWebView.loadRequest(request)
MagazineInWebView.scalesPageToFit = true
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
在启动应用程序后第一次打开此ViewController时,控制台会输出:
objc[4082]: UIPDFPageRenderOperation object 0x146774c10 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[4082]: UIPDFPageRenderOperation object 0x146528c50 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[4082]: UIPDFPageRenderOperation object 0x147ba24c0 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[4082]: UIPDFPageRenderOperation object 0x147e0b410 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[4082]: UIPDFPageRenderOperation object 0x147e0ca10 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
objc[4082]: UIPDFPageRenderOperation object 0x147e0dea0 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
没有问题。我只是想知道这意味着什么?有人知道这意味着什么吗?
答案 0 :(得分:6)
这是Apple私有CorePDF框架中的一个错误。我建议将其报告给http://radar.apple.com/。
除了忽略之外你不能做什么(只要这不会导致崩溃),从头开始重写,或从someone who did授权。
我们在支持中看到了更多关于这方面的报告,所以你所做的并不是什么特别的事情,而是iOS 9.3中的一般性问题。
编辑:有人报告此事,随时可以欺骗: https://openradar.appspot.com/25489061