回答編集履歴

2

修正

2018/06/11 03:06

投稿

退会済みユーザー
test CHANGED
@@ -22,4 +22,10 @@
22
22
 
23
23
 
24
24
 
25
- なので、optionalをつけてみたらどうでしょうか?
25
+ ~~なので、optionalをつけてみたらどうでしょうか?~~
26
+
27
+
28
+
29
+ 単純に考えすぎでした。
30
+
31
+ https://tech.recruit-mp.co.jp/mobile/swift-optional-method/

1

修正

2018/06/11 03:06

投稿

退会済みユーザー
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- optional public func numberOfSections(in tableView: UITableView) -> Int // Default is 1 if not implemented
15
+ optional public func tableView(_ tableView: UITableView, sectionForSectionIndexTitle title: String, at index: Int) -> Int
16
16
 
17
17
  }
18
18