Share via


UITableViewDiffableDataSource<SectionIdentifierType,ItemIdentifierType>.MoveRow Method

Definition

Called when a row has been moved so that the data source can 'implement' the changed row position that has been performed in the user interface. This ensures the data is kept in-sync with what is being displayed.

[Foundation.Export("tableView:moveRowAtIndexPath:toIndexPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void MoveRow(UIKit.UITableView tableView, Foundation.NSIndexPath sourceIndexPath, Foundation.NSIndexPath destinationIndexPath);
[<Foundation.Export("tableView:moveRowAtIndexPath:toIndexPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member MoveRow : UIKit.UITableView * Foundation.NSIndexPath * Foundation.NSIndexPath -> unit
override this.MoveRow : UIKit.UITableView * Foundation.NSIndexPath * Foundation.NSIndexPath -> unit

Parameters

tableView
UITableView

Table view containing the row being moved.

sourceIndexPath
NSIndexPath

Location of the row to be moved.

destinationIndexPath
NSIndexPath

New location of the row.

Implements

Attributes

Applies to