March 2014
Intermediate to advanced
672 pages
40h 11m
English
Add Quick Look support to the controller by implementing a trio of delegate callbacks:
#pragma mark QuickLook - (UIViewController *) documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController *)controller { return self; } - (UIView *)documentInteractionControllerViewForPreview: (UIDocumentInteractionController *)controller { return self.view; } - (CGRect)documentInteractionControllerRectForPreview: (UIDocumentInteractionController *)controller { return self.view.frame; }
These methods declare which view controller will be used to present the preview, which view will host it, and the frame for the preview size. You ...
Read now
Unlock full access