Last active
September 26, 2015 15:17
-
-
Save steipete/1117224 to your computer and use it in GitHub Desktop.
Integrating PSPDFKit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <PSPDFKit/PSPDFKit.h> | |
// Create the PSPDFDocument. (container for one or multiple pdfs) | |
NSURL *documentURL = [NSBundle.mainBundle.resourceURL URLByAppendingPathComponent:@"Sample.pdf"]; | |
PSPDFDocument *document = [PSPDFDocument documentWithURL:documentURL]; | |
// Open view controller. Embed into an UINavigationController to enable the toolbar. | |
PSPDFViewController *pdfController = [[PSPDFViewController alloc] initWithDocument:document]; | |
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:pdfController]; | |
[self presentViewController:navController animated:YES completion:NULL]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment