I want to implement QuickLook API for preview of pdf file. I made a view based app and in .h file I import QuickLook/QuickLook.h . in .m file I made the object of QLPreviewController inside viewDidLoad. After that i tried to make object of QLPreviewItem, but this gives error “QLPreviewItem undeclared”. Plz help me if u can.
Thanx.
Your almost there!
the QLPreviewController need a QLPreviewControllerDataSource
implement
<QLPreviewControllerDataSource>and add two functions:
Your see that the second method a QLPreviewItem returns (as you see it works with plain URL’s too)
I hope I helped you a bit further