下面的代码块在我试图构建时会产生这两个错误。有人能帮我吗?Xcode 8在我的项目中使用了它的migrator,我以前从未见过这个错误。
let url = URL(string: "http://www.google.com")!;
var pdf:CGPDFDocument = CGPDFDocument(url);error: cannot invoke initializer for type 'CGPDFDocument' with an argument list of type '(URL)'note: overloads for 'CGPDFDocument' exist with these partially matching parameter lists: (CGDataProvider), (CFURL)发布于 2016-09-27 13:37:55
你好,下面应该是这样的。
let url = URL(string: "http://www.google.com")!
fileprivate var pdfDoc: CGPDFDocument
pdfDoc = CGPDFDocument(url as CFURL)!https://stackoverflow.com/questions/39603715
复制相似问题