回答編集履歴
2
修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
// cell 作成
|
10
10
|
|
11
|
-
cell.contentView.backgroundColor = UIColor.gray
|
11
|
+
cell.contentView.backgroundColor = UIColor.lightGray
|
12
12
|
|
13
13
|
}
|
14
14
|
|
1
修正
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
`cell`には`contentView`という`UIView`が乗っているのでそれの背景色を変えてみてください。
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -6,10 +6,10 @@
|
|
6
6
|
|
7
7
|
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
8
8
|
|
9
|
-
|
9
|
+
// cell 作成
|
10
10
|
|
11
|
-
|
11
|
+
cell.contentView.backgroundColor = UIColor.gray
|
12
12
|
|
13
|
-
|
13
|
+
}
|
14
14
|
|
15
15
|
```
|