편집

다음을 통해 공유


UICollectionView.InsertItems(NSIndexPath[]) Method

Definition

Creates new cells in the UICollectionView, animating as necessary.

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

Parameters

indexPaths
NSIndexPath[]

An array of NSIndexPaths indicating the desired insertion locations.

Attributes

Remarks

Calling this method will trigger a request for layout information from the CollectionViewLayout. If the result includes visible elements, those elements will be populated via the DataSource and animated onto the screen.

If this method is called within the Action delegate passed to the PerformBatchUpdates(Action, UICompletionHandler) method, the animation will occur simultaneously with those of other manipulations of the UICollectionView.

Applies to