質問編集履歴
1
直の URLを代入してみた結果です。
test
CHANGED
File without changes
|
test
CHANGED
@@ -79,3 +79,37 @@
|
|
79
79
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
80
80
|
|
81
81
|
xcode6.4を使用しております。
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
以下で試しても同じnilが表示される結果でした。
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
```swift
|
90
|
+
|
91
|
+
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
let cell : collectionViewCell = collectionView.dequeueReusableCellWithReuseIdentifier("MyCell", forIndexPath: indexPath) as! collectionViewCell
|
96
|
+
|
97
|
+
var error: NSError?
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
let imagePathUrl = NSURL(string: "http://k.yimg.jp/images/top/sp2/cmn/logo-ns-131205.png")
|
102
|
+
|
103
|
+
var error: NSError?
|
104
|
+
|
105
|
+
var imageData = NSData(contentsOfURL: imagePathUrl!)
|
106
|
+
|
107
|
+
cell.image?.image = UIImage(data: imageData!)
|
108
|
+
|
109
|
+
return cell
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
```
|