Edit

Share via


UITableViewSource.WillBeginEditing(UITableView, NSIndexPath) Method

Definition

Called when the table view is about to enter swipe-to-delete editing mode.

[Foundation.Export("tableView:willBeginEditingRowAtIndexPath:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void WillBeginEditing (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath);
abstract member WillBeginEditing : UIKit.UITableView * Foundation.NSIndexPath -> unit
override this.WillBeginEditing : UIKit.UITableView * Foundation.NSIndexPath -> unit

Parameters

tableView
UITableView

Table view about to be edited.

indexPath
NSIndexPath

Location of the row that has been swiped.

Attributes

Remarks

This method is never called unless CommitEditingStyle(UITableView, UITableViewCellEditingStyle, NSIndexPath) is also implemented.

When the user swipes across a row, the table view's Editing property becomes true and a Delete button is shown in the row that was swiped (located at indexPath). This method is called to allow the user interface to be updated (for example, to provide a Cancel button to exit editing mode).

When exiting editing mode (such as after deletion operation), DidEndEditing(UITableView, NSIndexPath) is called.

Declared in [UITableViewDelegate]

Applies to