質問編集履歴
1
ソースコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,3 +23,47 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
こちらの状況の解決策のご教授をお願い致します。
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
---
|
30
|
+
|
31
|
+
※ソースコード追加
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
下記サイト様を参考にしております。
|
36
|
+
|
37
|
+
http://qiita.com/touyu/items/6fd26a35212e75f98c6b
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
こちらの closeButton のタップイベントを下記に変更致しました。
|
42
|
+
|
43
|
+
```swift
|
44
|
+
|
45
|
+
func tapedCloseButton(sender: UIButton) {
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.PhotoLibrary) {
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
let controller = UIImagePickerController()
|
54
|
+
|
55
|
+
controller.delegate = self
|
56
|
+
|
57
|
+
controller.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
|
58
|
+
|
59
|
+
self.presentViewController(controller, animated: true, completion: nil)
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
```
|