UIApplication.ApplicationSupportsShakeToEdit 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
控制摇动设备是否会显示撤消/恢复按钮。
[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。