UIKit.UITableViewDelegate.CustomizeMoveTarget Method
Return a new index path to change the final location of a row being moved by the user.

Syntax

[Foundation.Export("tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:")]
public virtual Foundation.NSIndexPath CustomizeMoveTarget (UITableView tableView, Foundation.NSIndexPath sourceIndexPath, Foundation.NSIndexPath proposedIndexPath)

Parameters

tableView
Table view containing the row to be moved.
sourceIndexPath
The original location of the row being moved.
proposedIndexPath
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.

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.

[UITableViewDelegate]

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0