共用方式為


UITableViewDelegate.CustomizeMoveTarget 方法

定義

傳回新的索引路徑,以變更使用者移動之資料列的最終位置。

[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

參數

tableView
UITableView

包含要移動之資料列的資料表檢視。

sourceIndexPath
NSIndexPath

要移動之資料列的原始位置。

proposedIndexPath
NSIndexPath

資料表檢視中已卸載資料列的位置。 這個方法可以改變位置。

傳回

要重新設定資料列移動目標之索引路徑。 如果不需要任何自訂,請使用 proposedIndexPath

屬性

備註

允許自訂在資料表檢視內移動之資料列的目標位置。 當資料列移動時,其他資料列會以視覺化方式在目的地位置滑動,以指出資料列要移至的位置。 傳回與這個方法不同的 proposedIndexPath 值,可防止資料列移至特定位置。

[UITableViewDelegate]

適用於