共用方式為


UIButtonType 列舉

定義

預先定義的按鈕類型的列舉。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIButtonType
type UIButtonType = 
繼承
UIButtonType
屬性

欄位

ContactAdd 5

連絡人新增按鈕。

Custom 0

沒有按鈕樣式。

DetailDisclosure 2

使用詳細資料洩漏按鈕 (箭號) 。

InfoDark 4

資訊按鈕,深色背景。

InfoLight 3

資訊按鈕,淺色背景。

Plain 6

標準系統按鈕。

RoundedRect 1

圓角矩形樣式。 從 iOS 7 起,此樣式已被取代;開發人員應該使用 System

System 1

在 iOS 7 中新增,這是慣用的預設樣式。 它缺少可見邊緣、背景等。

備註

的類型 UIButton

適用於