回答編集履歴

2

訂正

2020/04/15 11:26

投稿

退会済みユーザー
test CHANGED
@@ -14,13 +14,13 @@
14
14
 
15
15
  ```
16
16
 
17
- 訂正
17
+ 間違ってたので訂正
18
18
 
19
19
  ```swift
20
20
 
21
- TodoKobetsunonakami.remove(at : indexPath)
21
+ TodoKobetsunonakami.remove(at : indexPath.row)
22
22
 
23
- tableView.deleteRows(at : indexPath.row, with: .automatic)
23
+ tableView.deleteRows(at : indexPath, with: .automatic)
24
24
 
25
25
 
26
26
 

1

誤りを訂正

2020/04/15 11:26

投稿

退会済みユーザー
test CHANGED
@@ -1,6 +1,8 @@
1
1
  データを削除してから、それに対応するセルを削除してください。
2
2
 
3
3
 
4
+
5
+ 誤り
4
6
 
5
7
  ```swift
6
8
 
@@ -11,3 +13,15 @@
11
13
 
12
14
 
13
15
  ```
16
+
17
+ 訂正
18
+
19
+ ```swift
20
+
21
+ TodoKobetsunonakami.remove(at : indexPath)
22
+
23
+ tableView.deleteRows(at : indexPath.row, with: .automatic)
24
+
25
+
26
+
27
+ ```