瀏覽代碼

PDFViewer(ios) - PDFView自适应

dengkang 2 年之前
父節點
當前提交
ada6852780

二進制
PDFViewer.xcodeproj/project.xcworkspace/xcuserdata/kdan.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 0
PDFViewer/Controller/CPDFViewController.m

@@ -29,6 +29,7 @@
     CPDFDocument *document = [[CPDFDocument alloc] initWithURL:url];
     CPDFView *pdfView = [[CPDFView alloc] initWithFrame:self.view.bounds];
     pdfView.document = document;
+    pdfView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
     [self.view addSubview:pdfView];
 }