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。