回答編集履歴
1
誤字
answer
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
present(alert, animated: true, completion: nil)
|
25
25
|
self.tableView.reloadData()
|
26
26
|
|
27
|
-
3.セクションについて、現在は明
|
27
|
+
3.セクションについて、現在は明示的に self.dataArrayGroup[1].insert(String(text), at: count)
|
28
28
|
self.tableView.insertRows(at: [IndexPath(row: count, section: 1)], with: .automatic)と記述されています。セクションは0から始まるので、1は真ん中のデータが増える仕組みになります。
|
29
29
|
|
30
30
|
セクションで入力を変化させる場合も幾つか方法があると思いますが、アラートの表示の際にセクションの入力番号を分岐させる方法がありますが、セクションでデータ入力の前に、セクションなしのtableViewの仕組みを把握すると分かりやすくなるかもしれません。
|