質問編集履歴
2
コードのレイアウトを編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,7 +78,7 @@
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
-
```
|
81
|
+
```swift
|
82
82
|
|
83
83
|
class XXXXList: UIViewController, UITableViewDelegate, UITableViewDataSource {
|
84
84
|
|
@@ -96,14 +96,22 @@
|
|
96
96
|
|
97
97
|
let cell = tableView.dequeueReusableCellWithIdentifier("MyCell", forIndexPath: indexPath)
|
98
98
|
|
99
|
+
|
100
|
+
|
99
101
|
cell.textLabel!.text = "表示するタイトル"
|
102
|
+
|
103
|
+
|
100
104
|
|
101
105
|
let url:NSURL = NSURL(string: "画像のurl")!
|
102
106
|
|
103
|
-
cell.imageView!.sd_setImageWithURL(url)
|
107
|
+
cell.imageView!.sd_setImageWithURL(url)
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
return cell
|
104
112
|
|
105
113
|
}
|
106
114
|
|
107
|
-
|
115
|
+
}
|
108
116
|
|
109
117
|
```
|
1
実行箇所を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -65,3 +65,45 @@
|
|
65
65
|
|
66
66
|
|
67
67
|
よろしくお願いします。
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
---
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
以下の箇所で実行しています。
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
```ここに言語を入力
|
82
|
+
|
83
|
+
class XXXXList: UIViewController, UITableViewDelegate, UITableViewDataSource {
|
84
|
+
|
85
|
+
override func viewDidLoad() {
|
86
|
+
|
87
|
+
super.viewDidLoad()
|
88
|
+
|
89
|
+
((省略))
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
|
94
|
+
|
95
|
+
// 再利用するCellを取得する.
|
96
|
+
|
97
|
+
let cell = tableView.dequeueReusableCellWithIdentifier("MyCell", forIndexPath: indexPath)
|
98
|
+
|
99
|
+
cell.textLabel!.text = "表示するタイトル"
|
100
|
+
|
101
|
+
let url:NSURL = NSURL(string: "画像のurl")!
|
102
|
+
|
103
|
+
cell.imageView!.sd_setImageWithURL(url) return cell
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
```
|