質問編集履歴

1

表示部分のサンプルロジック追加。

2019/11/18 08:21

投稿

marimo_90
marimo_90

スコア8

test CHANGED
File without changes
test CHANGED
@@ -15,3 +15,33 @@
15
15
  お分かりになられる方がいらっしゃいましたら、どうかお教えください!
16
16
 
17
17
  よろしくお願いいたします。
18
+
19
+
20
+
21
+
22
+
23
+ ```objective-c
24
+
25
+ // PDFViewに対しての設定
26
+
27
+ _pdfView.autoScales = true;
28
+
29
+ _pdfView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
30
+
31
+ _pdfView.displayDirection = kPDFDisplayDirectionVertical;
32
+
33
+ _pdfView.displayMode = kPDFDisplaySinglePageContinuous;
34
+
35
+ _pdfView.displaysRTL = NO;
36
+
37
+ _pdfView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
38
+
39
+
40
+
41
+ PDFDocument *document = [[PDFDocument alloc] initWithURL:URL];
42
+
43
+ // ここまでで、表示はできております。
44
+
45
+
46
+
47
+ ```