High Aan,
проверил это на себе со следующим кодом:
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIView *tmpView = [self view];
NSData *data = [NSData dataWithContentsOfFile: @"local File on disk.pdf"];
PDFDocument *pdfDocument = [[PDFDocument alloc] initWithData:data];
PDFView *pdfView = [[PDFView alloc] initWithFrame: CGRectMake(0, 0, 1000, 1000)];
pdfView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleBottomMargin;
pdfView.autoScales = NO ;
pdfView.displayDirection = kPDFDisplayDirectionHorizontal;
pdfView.displayMode = kPDFDisplaySinglePageContinuous;
pdfView.displaysRTL = YES ;
[pdfView setDisplaysPageBreaks:YES];
[pdfView setDisplayBox:kPDFDisplayBoxTrimBox];
pdfView.document = pdfDocument;
[tmpView addSubview:pdfView];
}
и отображение PDF без проблем.
Единственное, что я нашел, это
UIView tmpView = (UIView)currentView;
вы разместили tmpview статически, должно быть.
UIView *tmpView = (UIView *)currentView;
В противном случае проверьте правильность ваших данных Pdf.