Upravit

Sdílet prostřednictvím


UITableView.DeleteRows(NSIndexPath[], UITableViewRowAnimation) Method

Definition

Delete the rows referenced in the atIndexPaths array. The deletion can optionally be animated.

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

Parameters

atIndexPaths
NSIndexPath[]

Array of NSIndexPath objects that identify which rows to delete.

withRowAnimation
UITableViewRowAnimation

What type of animation to use when deleting the rows (eg. fade out or slide out from bottom).

Attributes

Remarks

When this method is called inside an animation block defined by BeginUpdates() and EndUpdates(), 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