iOS Guides | Samples

MonoTouch.UIKit.UITableViewSource.WillBeginEditing Method

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

Syntax

[MonoTouch.Foundation.Export("tableView:willBeginEditingRowAtIndexPath:")]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Void WillBeginEditing (UITableView tableView, NSIndexPath indexPath)

Parameters

tableView
Table view about to be edited.
indexPath
Location of the row that has been swiped.

Remarks

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

When the user swipes across a row, the table view's UITableView.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), UITableViewSource.DidEndEditing(UITableView,NSIndexPath) is called.

Declared in [UITableViewDelegate]

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0