iOS Guides | Samples

MonoTouch.UIKit.UITableViewSource.WillBeginEditing Method

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


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


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


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]


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