WKWebKit Mac OS NSPrintOperation
问题 WebKit 1 exposed the WebFrameView where I could call a print operation. - (void)webView:(WebView *)sender printFrameView:(WebFrameView *)frameView { NSPrintOperation *printOperation = [frameView printOperationWithPrintInfo:[NSPrintInfo sharedPrintInfo]]; [printOperation runOperation]; } With WKWebKit API I can't seem to figure out how to perform a similar action or which view to grab for printing. All my efforts have come up with blank pages. 回答1: Amazingly, WKWebView still doesn't support