UITableViewDelegate.CustomizeMoveTarget Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
[UITableViewDelegate]