回答編集履歴
2
追記
answer
CHANGED
@@ -58,4 +58,7 @@
|
|
58
58
|
|
59
59
|

|
60
60
|
|
61
|
-

|
61
|
+

|
62
|
+
|
63
|
+
シュミレータースクショ
|
64
|
+

|
1
追記
answer
CHANGED
@@ -20,8 +20,10 @@
|
|
20
20
|
|
21
21
|
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
|
22
22
|
|
23
|
+
// IdentifierをStoryboardで設定したCustomCellにして CustomCellクラスを生成する
|
23
24
|
let cell = tableView.dequeueReusableCellWithIdentifier("CustomCell", forIndexPath: indexPath) as! CustomCell
|
24
25
|
|
26
|
+
// CustomCellに配置したラベルにテキストを設定
|
25
27
|
cell.label1.text = data[indexPath.row].label1
|
26
28
|
cell.label2.text = data[indexPath.row].label2
|
27
29
|
return cell
|
@@ -52,4 +54,8 @@
|
|
52
54
|
super.setSelected(selected, animated: animated)
|
53
55
|
}
|
54
56
|
}
|
55
|
-
```
|
57
|
+
```
|
58
|
+
|
59
|
+

|
60
|
+
|
61
|
+

|