質問編集履歴
1
ソースコードを最新にしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,13 +50,15 @@
|
|
50
50
|
|
51
51
|
let picker = UIImagePickerController()
|
52
52
|
|
53
|
+
|
54
|
+
|
53
55
|
picker.sourceType = camera
|
54
56
|
|
55
57
|
picker.delegate = self
|
56
58
|
|
57
|
-
print("aaa")
|
58
59
|
|
60
|
+
|
59
|
-
|
61
|
+
present(picker, animated: true, completion: nil)
|
60
62
|
|
61
63
|
}
|
62
64
|
|
@@ -68,13 +70,15 @@
|
|
68
70
|
|
69
71
|
// カメラからUse Photoが選択された場合に返ってくる関数を定義
|
70
72
|
|
71
|
-
|
73
|
+
func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String: AnyObject]) {
|
72
74
|
|
73
75
|
let image = info[UIImagePickerControllerOriginalImage] as! UIImage
|
74
76
|
|
75
77
|
|
76
78
|
|
77
|
-
print("
|
79
|
+
print("aaa")
|
80
|
+
|
81
|
+
self.dismiss(animated: true, completion: nil)
|
78
82
|
|
79
83
|
|
80
84
|
|
@@ -86,7 +90,7 @@
|
|
86
90
|
|
87
91
|
resultViewController.modalTransitionStyle = UIModalTransitionStyle.partialCurl
|
88
92
|
|
89
|
-
// View
|
93
|
+
// Viewを移動する.
|
90
94
|
|
91
95
|
self.present(resultViewController, animated: true, completion: nil)
|
92
96
|
|