-
Notifications
You must be signed in to change notification settings - Fork 207
list_insertSections(_:sectionHeaderData:sectionFooterData:at:with:)_argokit
aisleep edited this page Dec 17, 2020
·
2 revisions
在指定位置插入新章节数据
func insertSections(_ data: [[D]], sectionHeaderData: [ArgoKitIdentifiable]? = nil, sectionFooterData: [ArgoKitIdentifiable]? = nil, at sections: IndexSet, with animation: UITableView.RowAnimation) -> Self where D : ArgoKit.ArgoKitIdentifiable
data
插入章节的数据源,数据源必须遵循 ArgoKitIdentifiable 协议
sectionHeaderData
插入章节的顶部数据源,数据源必须遵循 ArgoKitIdentifiable 协议
sectionFooterData
插入章节的底部数据源,数据源必须遵循 ArgoKitIdentifiable 协议
sections
插入章节的索引
animation
更新时的动画类型