回答編集履歴
1
一部変更しました
answer
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
insertRowsの部分を下記のように変更すると何か変わりますでしょうか?
|
2
2
|
|
3
3
|
```
|
4
|
+
|
5
|
+
DispatchQueue.main.async { [weak self] in
|
4
|
-
self.tableView.beginUpdates()
|
6
|
+
self?.tableView.beginUpdates()
|
5
7
|
// ↓0から変更
|
6
|
-
self.tableView.insertRows(at: [IndexPath(row: self.items.count - 1, section: 0)], with: UITableViewRowAnimation.right)
|
8
|
+
self?.tableView.insertRows(at: [IndexPath(row: self.items.count - 1, section: 0)], with: UITableViewRowAnimation.right)
|
7
|
-
self.tableView.endUpdates()
|
9
|
+
self?.tableView.endUpdates()
|
10
|
+
}
|
8
11
|
|
9
12
|
```
|