UIImage-PDF
UIImage-PDF copied to clipboard
Rename pdfview to avoid linker warnings
Apple has an internal class also called PDFView. As it's not defined which class should be used, the linker gives a warning about that. To avoid that, PDFView has been renamed to NTBPDFView.
I have come across this problem as well. It took me quite sometime to find out the naming of this specific file was the problem. When I opened the PDFView description in Xcode, it would display PDFKit > PDFView header description but the compiler would compile UIImage-PDF > PDFView object instead.
In run time, my project would throw [PDFView setAutoScales:]: unrecognized selector sent to instance whenever I called a property or method on local PDFView variable because the called method/function did not exist in the compiled UIImage-PDF > PDFView.
Renaming the PDFView resolves the naming mix-up.