質問編集履歴
1
本文追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,3 +31,37 @@
|
|
31
31
|
|
32
32
|
|
33
33
|
知っている方がいらっしゃれば教えて頂けるとありがたいです。
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
追記:
|
38
|
+
|
39
|
+
ちなみにこのように自分の方ではAlamofireImageを使用しています。
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
Alamofire.request(url).responseImage { response in
|
44
|
+
|
45
|
+
debugPrint(response.result)
|
46
|
+
|
47
|
+
if let image = response.result.value {
|
48
|
+
|
49
|
+
print("image downloaded: (image)")
|
50
|
+
|
51
|
+
let imgratio:CGFloat = (image.size.height)/(image.size.width)
|
52
|
+
|
53
|
+
let iw = CGFloat(self.sw)
|
54
|
+
|
55
|
+
let resize = image.ResizeÜIImage(width: iw, height: iw*imgratio)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
self.banner.remove(at: Int(index)!)
|
60
|
+
|
61
|
+
self.banner.insert(resize!, at: Int(index)!)
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
```
|