Skip to content

Commit

Permalink
Merge pull request #7 from skyylex/master
Browse files Browse the repository at this point in the history
Defaults settings were cut away from loadDocument
  • Loading branch information
Marxon13 committed May 18, 2015
2 parents 3b28a7d + 9116073 commit de99828
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Classes/View/PDFKBasicPDFViewer.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@ - (void)loadDocument:(PDFKDocument *)document
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];

//Defaults
_enableBookmarks = YES;
_enableSharing = YES;
_enablePrinting = YES;
_enableOpening = YES;
_enableThumbnailSlider = YES;
_enablePreview = YES;
_standalone = YES;
_document = document;

//Create the thumbs view
Expand Down
5 changes: 5 additions & 0 deletions M13PDFKit/SamplesTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"Basic Sample"]) {
//Create the document for the viewer when the segue is performed.
PDFKBasicPDFViewer *viewer = (PDFKBasicPDFViewer *)segue.destinationViewController;
viewer.enableBookmarks = YES;
viewer.enableOpening = YES;
viewer.enablePrinting = YES;
viewer.enableSharing = YES;
viewer.enableThumbnailSlider = YES;

//Load the document
PDFKDocument *document = [PDFKDocument documentWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Wikipedia" ofType:@"pdf"] password:nil];
Expand Down

0 comments on commit de99828

Please sign in to comment.