Your interface has to tell that it's implementing the callbacks
@interface QuickLookViewController : QLPreviewController
<QLPreviewControllerDataSource, QLPreviewControllerDelegate>
Add the protocal names inside arrow brackets after the class name