質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -87,3 +87,39 @@
|
|
87
87
|
}
|
88
88
|
|
89
89
|
```
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
ちなみにMyImageViewはこちらの構成になっております。
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
class MyImageView: UIImageView {
|
98
|
+
|
99
|
+
func loadImage(url:String) -> Void {
|
100
|
+
|
101
|
+
Alamofire.request(url).responseImage { response in
|
102
|
+
|
103
|
+
//debugPrint(response
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
debugPrint(response.result)
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
if let image = response.result.value {
|
112
|
+
|
113
|
+
//print("image downloaded: (image)")
|
114
|
+
|
115
|
+
self.image = image
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
```
|