diff --git a/Classes/View/PDFKBasicPDFViewer.m b/Classes/View/PDFKBasicPDFViewer.m index 7809ba3..f293134 100644 --- a/Classes/View/PDFKBasicPDFViewer.m +++ b/Classes/View/PDFKBasicPDFViewer.m @@ -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 diff --git a/M13PDFKit/SamplesTableViewController.m b/M13PDFKit/SamplesTableViewController.m index cb9c3fa..1aadc80 100644 --- a/M13PDFKit/SamplesTableViewController.m +++ b/M13PDFKit/SamplesTableViewController.m @@ -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];