回答編集履歴
2
訂正
answer
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
tableView.deleteRows(at : indexPath, with: .automatic)
|
7
7
|
|
8
8
|
```
|
9
|
-
訂正
|
9
|
+
間違ってたので訂正
|
10
10
|
```swift
|
11
|
-
TodoKobetsunonakami.remove(at : indexPath)
|
11
|
+
TodoKobetsunonakami.remove(at : indexPath.row)
|
12
|
-
tableView.deleteRows(at : indexPath
|
12
|
+
tableView.deleteRows(at : indexPath, with: .automatic)
|
13
13
|
|
14
14
|
```
|
1
誤りを訂正
answer
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
データを削除してから、それに対応するセルを削除してください。
|
2
2
|
|
3
|
+
誤り
|
3
4
|
```swift
|
4
5
|
TodoKobetsunonakami.remove(at : indexPath)
|
5
6
|
tableView.deleteRows(at : indexPath, with: .automatic)
|
6
7
|
|
8
|
+
```
|
9
|
+
訂正
|
10
|
+
```swift
|
11
|
+
TodoKobetsunonakami.remove(at : indexPath)
|
12
|
+
tableView.deleteRows(at : indexPath.row, with: .automatic)
|
13
|
+
|
7
14
|
```
|