共用方式為


UICollectionViewController.InstallsStandardGestureForInteractiveMovement 屬性

定義

標準長按手勢辨識器是否開始重新排序儲存格。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool InstallsStandardGestureForInteractiveMovement { [Foundation.Export("installsStandardGestureForInteractiveMovement")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setInstallsStandardGestureForInteractiveMovement:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.InstallsStandardGestureForInteractiveMovement : bool with get, set

屬性值

預設值是 true

屬性

備註

根據預設,在 中 UICollectionViewController 拖放儲存格位置會觸發長按 (和實作 MoveItem(UICollectionView, NSIndexPath, NSIndexPath)) 。 不想要該行為的開發人員可以將此值設定為 false

適用於