Upravit

Sdílet prostřednictvím


UITableViewDataSource.CanMoveRow(UITableView, NSIndexPath) Method

Definition

Whether the row located at indexPath can be moved to another location in the table view.

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

Parameters

tableView
UITableView

Table view containing the row.

indexPath
NSIndexPath

Location of the row.

Returns

true if the row can be moved, otherwise false.

Attributes

Remarks

This method allows specific rows to have the reordering control to be hidden for specific rows. By default, the reordering control is always shown if MoveRow(UITableView, NSIndexPath, NSIndexPath) is implemented on the UITableViewSource.

Applies to