Edit

Share via


UITableViewSource.CustomizeMoveTarget Method

Definition

Return a new index path to change the final ___location of a row being moved by the user.

[Foundation.Export("tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:")]
public virtual Foundation.NSIndexPath CustomizeMoveTarget(UIKit.UITableView tableView, Foundation.NSIndexPath sourceIndexPath, Foundation.NSIndexPath proposedIndexPath);
abstract member CustomizeMoveTarget : UIKit.UITableView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath
override this.CustomizeMoveTarget : UIKit.UITableView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath

Parameters

tableView
UITableView

Table view containing the row to be moved.

sourceIndexPath
NSIndexPath

The original ___location of the row being moved.

proposedIndexPath
NSIndexPath

The ___location in the table view where the row has been dropped. The ___location can be altered by this method.

Returns

An index path to retarget the proposed move of a row. Use proposedIndexPath if no customization is required.

Attributes

Remarks

Allows customization of the target ___location for a row that is being moved within a table view. As the row is moved, other rows slide apart visually at the destination ___location to indicate where the row would be moved to. By returning a value that is different to proposedIndexPath this method can prevent a row from being moved to certain locations.

Declared in [UITableViewDelegate]

Applies to