Instance Method

tableView:dropPreviewParametersForRowAtIndexPath:

Returns custom information about how to display the row at the specified location during the drop.

Declaration

- (UIDragPreviewParameters *)tableView:(UITableView *)tableView dropPreviewParametersForRowAtIndexPath:(NSIndexPath *)indexPath;

Parameters

tableView

The table view that is attempting to handle the drop.

indexPath

The index path of the row currently being targeted by the drop.

Return Value

A UIDragPreviewParameters object containing information about how to customize the row's appearance. Return nil to use the default appearance.

Discussion

Use this method to customize the appearance of the row before a drop occurs. For example, you might use this method to specify that only part of the cell's visible content should be used for the drop preview. If you do not implement this method, or if you return nil, the drop preview displays the row's visible content.

In your implementation, create a UIDragPreviewParameters object and specify the custom preview information for the specified row. Use the parameters to specify the portion of the row that you want to display or to change the background color drawn beneath the row's contents.