重新加载单个节时,为什么tableview节会跳?

时间:2019-06-20 21:49:21

标签: swift xcode uitableview

我有一个tableview,其中包含标头和单元格的多个部分。我一直在处理重新加载效果良好的各个部分:

tableView?.reloadSections(IndexSet(integer: existingDisplaySectionIndex), with: .none)
tableView?.layer.removeAllAnimations()
tableView?.layer.layoutSublayers()

现在的问题是我有一个带有按钮的部分。当您单击该部分中的按钮之一时,这些部分会向上移动约10个像素一秒钟,然后正确显示。关于清理班次/跳动有什么想法吗?

0 个答案:

没有答案