PSPDFKit注意工具栏的注释问题

时间:2013-08-20 10:04:45

标签: ios pspdfkit

我正在尝试使用PSDFKit演示版在我的应用程序中显示pdf文件。我已将PSPDFViewcontroller作为子视图添加到app视图层次结构.PSPDKIt工具栏是隐藏的.App正在使用父视图控制器的工具栏。

我的问题是,当我尝试添加注释注释时,它会与底部工具栏重叠。 无法找到这种奇怪行为背后的原因。

可能是什么原因? 这是我的代码

-(void)showDocumentWithFileURL:(NSURL *)url
{
    NSData*pdfdata = [NSData dataWithContentsOfURL:url];
    PSPDFDocument *document = [PSPDFDocument documentWithData:pdfdata];
    [document.outlineParser outline];    //Parse outline..
    self.psPdfViewController = [[PSPDFViewController alloc] initWithDocument:document];
    self.psPdfViewController.scrollingEnabled = YES;
    self.psPdfViewController.toolbarEnabled = NO;
    self.psPdfViewController.delegate = self;
    self.psPdfViewController.document.delegate = self;
    self.psPdfViewController.shouldHideStatusBarWithHUD = NO;
    self.psPdfViewController.renderAnimationEnabled = NO;
    self.psPdfViewController.hidesBottomBarWhenPushed =YES;
    //Hide bottom page scrollbar.

    self.psPdfViewController.scrollDirection = PSPDFScrollDirectionVertical;
    self.psPdfViewController.leftBarButtonItems = @[];

    //Add pspdf view as chaild view controller.
    [self addChildViewController:self.psPdfViewController];
    [self.view addSubview:self.psPdfViewController.view];
    //Add Navigation Bar and toolbar Buttons.
    [self updateHeaderFooter];
 }
else
  {
    [self updateHeaderFooter];
  }

}

0 个答案:

没有答案
相关问题