Share via


UIAlertControllerStyle 列舉

定義

列舉 是要 UIAlertController 顯示動作表還是警示。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIAlertControllerStyle
type UIAlertControllerStyle = 
繼承
UIAlertControllerStyle
屬性

欄位

ActionSheet 0

將警示控制器顯示為動作表。

Alert 1

將警示控制器顯示為警示。

備註

這是顯示動作表的方式:

這是警示的顯示方式:

適用於