One Logo Pool Ball
UIKit · IOS API REFERENCE

UIActionSheet

class · iOS 2.0+ · Deprecated in iOS 8.3 · SDK 27.1

@MainActor class UIActionSheet

Members (22)

method · iOS 2.0+ · Deprecated in iOS 8.3

addButton

TypeScript
addButton(title?: (string) | null): Promise<number>
Swift declaration
func addButton(withTitle title: String?) -> Int
method · iOS 2.0+ · Deprecated in iOS 8.3

buttonTitle

TypeScript
buttonTitle(buttonIndex: number): Promise<(string) | null>
Swift declaration
func buttonTitle(at buttonIndex: Int) -> String?
method · iOS 2.0+ · Deprecated in iOS 8.3

dismiss

TypeScript
dismiss(buttonIndex: number, animated: boolean): Promise<void>
Swift declaration
func dismiss(withClickedButtonIndex buttonIndex: Int, animated: Bool)
init · iOS 2.0+ · Deprecated in iOS 8.3

init

TypeScript
static init(title?: (string) | null, delegate?: (Implements<UIActionSheetDelegate> | SDKHandle) | null, cancelButtonTitle?: (string) | null, destructiveButtonTitle?: (string) | null): Promise<UIActionSheet>
Swift declaration
init(title: String?, delegate: (any UIActionSheetDelegate)?, cancelButtonTitle: String?, destructiveButtonTitle: String?)
method · iOS 3.2+ · Deprecated in iOS 8.3

show

TypeScript
showFromAnimated(item: UIBarButtonItem, animated: boolean): Promise<void>
Swift declaration
func show(from item: UIBarButtonItem, animated: Bool)
method · iOS 3.2+ · Deprecated in iOS 8.3

show

TypeScript
showFromInAnimated(rect: { x: number; y: number; width: number; height: number }, view: UIView, animated: boolean): Promise<void>
Swift declaration
func show(from rect: CGRect, in view: UIView, animated: Bool)
method · iOS 2.0+ · Deprecated in iOS 8.3

show

TypeScript
showFrom(view: UITabBar): Promise<void>
Swift declaration
func show(from view: UITabBar)
method · iOS 2.0+ · Deprecated in iOS 8.3

show

TypeScript
showFrom51681(view: UIToolbar): Promise<void>
Swift declaration
func show(from view: UIToolbar)
method · iOS 2.0+ · Deprecated in iOS 8.3

show

TypeScript
showIn(view: UIView): Promise<void>
Swift declaration
func show(in view: UIView)
get · iOS 2.0+ · Deprecated in iOS 8.3

actionSheetStyle

TypeScript
get actionSheetStyle(): Promise<UIActionSheetStyle>
Swift declaration
var actionSheetStyle: UIActionSheetStyle { get set }
set · iOS 2.0+ · Deprecated in iOS 8.3

actionSheetStyle

TypeScript
setActionSheetStyle(value: UIActionSheetStyle): Promise<void>
Swift declaration
var actionSheetStyle: UIActionSheetStyle { get set }
get · iOS 2.0+ · Deprecated in iOS 8.3

cancelButtonIndex

TypeScript
get cancelButtonIndex(): Promise<number>
Swift declaration
var cancelButtonIndex: Int { get set }
set · iOS 2.0+ · Deprecated in iOS 8.3

cancelButtonIndex

TypeScript
setCancelButtonIndex(value: number): Promise<void>
Swift declaration
var cancelButtonIndex: Int { get set }
get · iOS 2.0+ · Deprecated in iOS 8.3

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var delegate: (any UIActionSheetDelegate)? { get set }
set · iOS 2.0+ · Deprecated in iOS 8.3

delegate

TypeScript
setDelegate(value?: (Implements<UIActionSheetDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var delegate: (any UIActionSheetDelegate)? { get set }
get · iOS 2.0+ · Deprecated in iOS 8.3

destructiveButtonIndex

TypeScript
get destructiveButtonIndex(): Promise<number>
Swift declaration
var destructiveButtonIndex: Int { get set }
set · iOS 2.0+ · Deprecated in iOS 8.3

destructiveButtonIndex

TypeScript
setDestructiveButtonIndex(value: number): Promise<void>
Swift declaration
var destructiveButtonIndex: Int { get set }
get · iOS 2.0+ · Deprecated in iOS 8.3

firstOtherButtonIndex

TypeScript
get firstOtherButtonIndex(): Promise<number>
Swift declaration
var firstOtherButtonIndex: Int { get }
get · iOS 2.0+ · Deprecated in iOS 8.3

numberOfButtons

TypeScript
get numberOfButtons(): Promise<number>
Swift declaration
var numberOfButtons: Int { get }
get · iOS 2.0+ · Deprecated in iOS 8.3

title

TypeScript
get title(): Promise<string>
Swift declaration
var title: String { get set }
set · iOS 2.0+ · Deprecated in iOS 8.3

title

TypeScript
setTitle(value: string): Promise<void>
Swift declaration
var title: String { get set }
get · iOS 2.0+ · Deprecated in iOS 8.3

isVisible

TypeScript
get isVisible(): Promise<boolean>
Swift declaration
var isVisible: Bool { get }

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIActionSheet.init(title:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:_:)

A variable number of Swift arguments is not supported.

UIActionSheet.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All UIKit types →