最佳答案
尝试在tableView.insertRowsAtIndexPaths之前添加
tableView.beginUpdates()
在 insertRowsAtIndexPaths
之后
tableView.endUpdates()
例子:
tableView.beginUpdates()
tableView.insertRowsAtIndexPaths(indexPath, withRowAnimation: .Bottom)
tableView.endUpdates()
关于ios - 插入新行时不会发生行动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37331580/