UIButton.FromType Method

Definition

Overloads

FromType(UIButtonType)

[Foundation.Export("buttonWithType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIButton FromType(UIKit.UIButtonType type);
[<Foundation.Export("buttonWithType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromType : UIKit.UIButtonType -> UIKit.UIButton

Parameters

Returns

Attributes

Applies to

FromType(UIButtonType, UIAction)

[Foundation.Export("buttonWithType:primaryAction:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIButton FromType(UIKit.UIButtonType buttonType, UIKit.UIAction? primaryAction);
[<Foundation.Export("buttonWithType:primaryAction:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromType : UIKit.UIButtonType * UIKit.UIAction -> UIKit.UIButton

Parameters

buttonType
UIButtonType
primaryAction
UIAction

Returns

Attributes

Applies to