UICollectionView.DeleteItems(NSIndexPath[]) 方法

定义

UICollectionView中删除一个或多个项。

[Foundation.Export("deleteItemsAtIndexPaths:")]
public virtual void DeleteItems (Foundation.NSIndexPath[] indexPaths);
abstract member DeleteItems : Foundation.NSIndexPath[] -> unit
override this.DeleteItems : Foundation.NSIndexPath[] -> unit

参数

indexPaths
NSIndexPath[]

指定要删除的项的 NSIndexPath数组。

属性

注解

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

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

适用于