UIImage-PDF icon indicating copy to clipboard operation
UIImage-PDF copied to clipboard

Rename pdfview to avoid linker warnings

Open carsten-wenderdel opened this issue 8 years ago • 1 comments

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.

carsten-wenderdel avatar Nov 14 '16 18:11 carsten-wenderdel

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.

emrahu avatar Jan 08 '20 05:01 emrahu