Edit

Share via


UICollectionView.DeleteItems(NSIndexPath[]) Method

Definition

Deletes one or more items from the UICollectionView.

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

Parameters

indexPaths
NSIndexPath[]

An array of NSIndexPaths specifying the items to be deleted.

Attributes

Remarks

After deletion, the UICollectionView will animate the layout as needed.

If the application developer wishes to coordinate several updates without individual animations, they can use the PerformBatchUpdates(Action, UICompletionHandler) method.

Applies to