【发布时间】:2012-10-27 00:35:17
【问题描述】:
UITableView documentation 表示可以在 beginUpdates-endUpdates 块中组合对 moveSection:toSection:、insertSections:withRowAnimation: 和 deleteSections:withRowAnimation: 的调用。 Table View Programming Guide 中名为 Batch Insertion, Deletion, and Reloading of Rows and Sections 的部分还解释了当在更新块中混合插入和删除时,无论方法调用的顺序如何,表视图都会在插入之前先进行删除。
我的问题是,当对moveSection:toSection: 的调用与对insertSections: 和deleteSections: 的调用结合使用时,表格视图的移动顺序是什么?或者,fromSection 和 toSection 是指删除之前、删除和插入之间还是插入之后的节索引?
【问题讨论】:
标签: ios uitableview