UICollectionView.DeleteSections(NSIndexSet) 方法

定义

UICollectionView中删除一个或多个节。

[Foundation.Export("deleteSections:")]
public virtual void DeleteSections (Foundation.NSIndexSet sections);
abstract member DeleteSections : Foundation.NSIndexSet -> unit
override this.DeleteSections : Foundation.NSIndexSet -> unit

参数

sections
NSIndexSet

一个 NSIndexSet ,指定要删除的节。

属性

注解

删除后, UICollectionView 将根据需要对布局进行动画处理。

如果应用程序开发人员希望在没有单独的动画的情况下协调多个更新,则可以使用 PerformBatchUpdates(Action, UICompletionHandler) 方法。

适用于