共用方式為


UIApplication.ApplicationSupportsShakeToEdit 屬性

定義

控制裝置的震動是否會顯示覆原/取消復原按鈕。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ApplicationSupportsShakeToEdit { [Foundation.Export("applicationSupportsShakeToEdit")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setApplicationSupportsShakeToEdit:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.ApplicationSupportsShakeToEdit : bool with get, set

屬性值

預設為 true,因此所有應用程式預設都支援復原/重做,方法是震動。

屬性

備註

如果您想要停用在搖動時顯示覆原/取消復原對話方塊的預設行為,請將此值設定為 false。

適用於