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。

适用于