回答編集履歴
3
viewWillAppearを追記
test
CHANGED
@@ -5,6 +5,16 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
```swift
|
8
|
+
|
9
|
+
override func viewWillAppear(animated: Bool) {
|
10
|
+
|
11
|
+
super.viewWillAppear(animated)
|
12
|
+
|
13
|
+
self.tableView.reloadData()
|
14
|
+
|
15
|
+
}
|
16
|
+
|
17
|
+
|
8
18
|
|
9
19
|
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
10
20
|
|
2
numberOfSectionsInTableViewを追加
test
CHANGED
@@ -28,4 +28,12 @@
|
|
28
28
|
|
29
29
|
}
|
30
30
|
|
31
|
+
|
32
|
+
|
33
|
+
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
|
34
|
+
|
35
|
+
return 1
|
36
|
+
|
37
|
+
}
|
38
|
+
|
31
39
|
```
|
1
コードの言語指定を修正
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
```
|
7
|
+
```swift
|
8
8
|
|
9
9
|
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
10
10
|
|