質問編集履歴
3
説明文を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
Xcode6.4(swift1.2)を使ってiPad向けのアプリ開発をしているものです。
|
6
|
+
|
7
|
+
実機のiPadで動作させており、iPadのバージョンは10.2です。
|
8
|
+
|
9
|
+
|
6
10
|
|
7
11
|
やりたいことは以下です。
|
8
12
|
|
2
エラーメッセージを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,4 +68,14 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
+
エラーメッセージは以下です。
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
libc++abi.dylib: terminating with uncaught exception of type NSException
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
|
80
|
+
|
71
81
|
以上、よろしくお願いいたします。
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,6 +48,16 @@
|
|
48
48
|
|
49
49
|
iPicker.delegate = self
|
50
50
|
|
51
|
+
// 以下はpopoverがnilになりエラーとなるためコメントアウト
|
52
|
+
|
53
|
+
// let popover = iPicker.popoverPresentationController
|
54
|
+
|
55
|
+
// popover!.sourceView = self.view
|
56
|
+
|
57
|
+
// popover!.sourceRect = self.view.frame // ポップオーバーの表示元となるエリア
|
58
|
+
|
59
|
+
// popover!.permittedArrowDirections = UIPopoverArrowDirection.Any
|
60
|
+
|
51
61
|
presentViewController(iPicker, animated: false, completion: nil)
|
52
62
|
|
53
63
|
}
|