回答編集履歴
2
訂正
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
`tableView(_: viewForHeaderInSection) -> UIView?`内で`UITableViewCell`を返しても問題ないという記事を読んで、`dequeueReusableCell(withIdentifier: String
|
1
|
+
`tableView(_: viewForHeaderInSection) -> UIView?`内で`UITableViewCell`を返しても問題ないという記事を読んで、`dequeueReusableCell(withIdentifier: String)`を使っていたのが問題の一因のようでした。
|
2
2
|
|
3
3
|
`dequeueReusableHeaderFooterView(withIdentifier: String)`を使用して`UITableViewHeaderFooterView`のサブクラスを返したところ`endUpdate()`後の`tableView.reloadData()`も不要になりました。
|
4
4
|
|
1
修正
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
`tableView(_: viewForHeaderInSection) -> UIView?`で`UITableViewCell`を返しても問題ないという記事を読んで、`dequeueReusableCell(withIdentifier: String, for: IndexPath)`を使っていたのが問題の一因のようでした。
|
1
|
+
`tableView(_: viewForHeaderInSection) -> UIView?`内で`UITableViewCell`を返しても問題ないという記事を読んで、`dequeueReusableCell(withIdentifier: String, for: IndexPath)`を使っていたのが問題の一因のようでした。
|
2
2
|
|
3
3
|
`dequeueReusableHeaderFooterView(withIdentifier: String)`を使用して`UITableViewHeaderFooterView`のサブクラスを返したところ`endUpdate()`後の`tableView.reloadData()`も不要になりました。
|
4
4
|
|