回答編集履歴
1
修正
answer
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
```swift
|
5
5
|
// Section Header View
|
6
|
-
func tableView(
|
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(
|
17
|
+
func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
18
18
|
// ヘッダーViewの高さを返す
|
19
19
|
return 40
|
20
20
|
}
|