共用方式為


UIAlertController.PreferredAction 屬性

定義

取得或設定在向使用者顯示警示時會反白顯示的動作。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIAlertAction PreferredAction { [Foundation.Export("preferredAction")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setPreferredAction:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.PreferredAction : UIKit.UIAlertAction with get, set

屬性值

(即將推出此節點的更多檔)

這個值可以是 null

屬性

適用於