Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9643 Reply

    Robin Bastian

    I am getting EXC_BAD_ACCESS

    When trying to push the PlugPDFViewController document using

    _pdfViewController = nil;

    @try {
    _pdfBuffer = [att.content copy];
    _pdfViewController = [PlugPDFDocumentViewController initWithData:_pdfBuffer
    password:@””
    title:attachment.name];
    }
    @catch (NSException *exception) {
    NSLog(@”Exception %@ %@”, exception.name, exception.description);
    }
    if (_pdfViewBuffer) {
    [self.navigationController pushViewController: _pdfViewController
    animated: true];
    if ([[UIDevice currentDevice].systemVersion hasPrefix:@”7″] ||
    [[UIDevice currentDevice].systemVersion hasPrefix:@”8″]) {
    [_pdfViewBuffer setAutomaticallyAdjustsScrollViewInsets: NO];
    }
    }

    StackTrace
    #1 0x001666c3 in -[PlugPDFPageView loadImageView] ()
    #2 0x00162efa in -[PlugPDFPageView initWithFrame:documentView:pageIdx:fitType:scale:zoomFlag:] ()
    #3 0x001b873d in -[PlugPDFDocumentView createPageView:] ()
    #4 0x001b8993 in -[PlugPDFDocumentView createPage:] ()
    #5 0x001b98c6 in -[PlugPDFDocumentView gotoPage:fitToScreen:] ()
    #6 0x001e6a8f in -[PlugPDFDocumentViewController movePage:fitToScreen:] ()
    #7 0x001f2dbb in -[PlugPDFDocumentViewController setDisplayMode:] ()
    #8 0x001e5f2f in -[PlugPDFDocumentViewController viewWillAppear:] ()
    #9 0x026d11a1 in -[UIViewController _setViewAppearState:isAnimating:] ()

Viewing 1 post (of 1 total)
Reply To: EXC_BAD_ACCESS
Your information: