편집

다음을 통해 공유


UITableView.InsertRows(NSIndexPath[], UITableViewRowAnimation) Method

Definition

Inserts rows into the UITableView.

[Foundation.Export("insertRowsAtIndexPaths:withRowAnimation:")]
public virtual void InsertRows (Foundation.NSIndexPath[] atIndexPaths, UIKit.UITableViewRowAnimation withRowAnimation);
abstract member InsertRows : Foundation.NSIndexPath[] * UIKit.UITableViewRowAnimation -> unit
override this.InsertRows : Foundation.NSIndexPath[] * UIKit.UITableViewRowAnimation -> unit

Parameters

atIndexPaths
NSIndexPath[]

An array of NSIndexPaths that indicate the desired insertion points.

withRowAnimation
UITableViewRowAnimation

What type of animation to use.

Attributes

Remarks

UITableView calls the relevant UITableViewSource methods (e.g., GetCell(UITableView, NSIndexPath) and related methods) immediately afterwards to get the cells and other content to display the visible rows.

When this method is called within a BeginUpdates()-EndUpdates() animation block, any insertions of rows or sections are deferred until after deletions have been processed. This happens regardless of the ordering of the insertion and deletion method calls within the animation block..

Applies to