teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

修正

2017/02/12 12:40

投稿

_Kentarou
_Kentarou

スコア8490

answer CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  ```swift
5
5
  // Section Header View
6
- func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
6
+ func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
7
7
  // HeaderのViewを作成してViewを返す
8
8
  let headerView = UIView()
9
9
  let label = UILabel()
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  // Section Header Height
17
- func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
17
+ func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
18
18
  // ヘッダーViewの高さを返す
19
19
  return 40
20
20
  }