Edytuj

Udostępnij za pośrednictwem


UITableViewDelegate.EditingStyleForRow(UITableView, NSIndexPath) Method

Definition

Called for each row being displayed by the table view, to determine what editing style to use for that row.

[Foundation.Export("tableView:editingStyleForRowAtIndexPath:")]
public virtual UIKit.UITableViewCellEditingStyle EditingStyleForRow (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath);
abstract member EditingStyleForRow : UIKit.UITableView * Foundation.NSIndexPath -> UIKit.UITableViewCellEditingStyle
override this.EditingStyleForRow : UIKit.UITableView * Foundation.NSIndexPath -> UIKit.UITableViewCellEditingStyle

Parameters

tableView
UITableView

Table view that is going to be editable.

indexPath
NSIndexPath

Location of the row.

Returns

The editing style to be used for the row specified by indexPath.

Attributes

Remarks

When the table view enters editing mode, this method allows the editing style to be set for each row.

If the UITableViewCell is editable (Editing is true) but this method is not implemented, the cell gets Delete set for it by default.

Applies to