編集

次の方法で共有


UITableView.DeleteSections(NSIndexSet, UITableViewRowAnimation) Method

Definition

Deletes a section (or sections) from a table view, with an option to animate the operation.

[Foundation.Export("deleteSections:withRowAnimation:")]
public virtual void DeleteSections (Foundation.NSIndexSet sections, UIKit.UITableViewRowAnimation withRowAnimation);
abstract member DeleteSections : Foundation.NSIndexSet * UIKit.UITableViewRowAnimation -> unit
override this.DeleteSections : Foundation.NSIndexSet * UIKit.UITableViewRowAnimation -> unit

Parameters

sections
NSIndexSet

A set of section identifiers to delete. If a section exists after one that is deleted, it is moved up one index location.

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