回答編集履歴

2

修正

2016/12/08 12:32

投稿

_Kentarou
_Kentarou

スコア8490

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

修正

2016/12/08 12:32

投稿

_Kentarou
_Kentarou

スコア8490

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
- // cell 作成
9
+ // cell 作成
10
10
 
11
- cell.contentView.backgroundColor = UIColor.gray
11
+ cell.contentView.backgroundColor = UIColor.gray
12
12
 
13
- }
13
+ }
14
14
 
15
15
  ```