One Logo Pool Ball
UIKit · IOS API REFERENCE

UIAlertView

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

@MainActor class UIAlertView

Members (21)

method · iOS 2.0+ · Deprecated in iOS 9.0

addButton

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

buttonTitle

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

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 9.0

init

TypeScript
static initCoder(coder: _Foundation_NSCoder): Promise<(UIAlertView) | null>
Swift declaration
init?(coder: NSCoder)
init · iOS 2.0+ · Deprecated in iOS 9.0

init

TypeScript
static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UIAlertView>
Swift declaration
init(frame: CGRect)
init · iOS 2.0+ · Deprecated in iOS 9.0

init

TypeScript
static initTitleMessageDelegateCancelButtonTitle(title?: (string) | null, message?: (string) | null, delegate?: (unknown) | null, cancelButtonTitle?: (string) | null): Promise<UIAlertView>
Swift declaration
convenience init(title: String?, message: String?, delegate: Any?, cancelButtonTitle: String?)
method · iOS 2.0+ · Deprecated in iOS 9.0

show

TypeScript
show(): Promise<void>
Swift declaration
func show()
method · iOS 5.0+ · Deprecated in iOS 9.0

textField

TypeScript
textField(textFieldIndex: number): Promise<(UITextField) | null>
Swift declaration
func textField(at textFieldIndex: Int) -> UITextField?
get · iOS 5.0+ · Deprecated in iOS 9.0

alertViewStyle

TypeScript
get alertViewStyle(): Promise<UIAlertViewStyle>
Swift declaration
var alertViewStyle: UIAlertViewStyle { get set }
set · iOS 5.0+ · Deprecated in iOS 9.0

alertViewStyle

TypeScript
setAlertViewStyle(value: UIAlertViewStyle): Promise<void>
Swift declaration
var alertViewStyle: UIAlertViewStyle { get set }
get · iOS 2.0+ · Deprecated in iOS 9.0

cancelButtonIndex

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

cancelButtonIndex

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

delegate

TypeScript
get delegate(): Promise<(unknown) | null>
Swift declaration
weak var delegate: AnyObject? { get set }
set · iOS 2.0+ · Deprecated in iOS 9.0

delegate

TypeScript
setDelegate(value?: (unknown) | null): Promise<void>
Swift declaration
weak var delegate: AnyObject? { get set }
get · iOS 2.0+ · Deprecated in iOS 9.0

firstOtherButtonIndex

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

message

TypeScript
get message(): Promise<(string) | null>
Swift declaration
var message: String? { get set }
set · iOS 2.0+ · Deprecated in iOS 9.0

message

TypeScript
setMessage(value?: (string) | null): Promise<void>
Swift declaration
var message: String? { get set }
get · iOS 2.0+ · Deprecated in iOS 9.0

numberOfButtons

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

title

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

title

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

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.

UIAlertView.init(title:message:delegate:cancelButtonTitle:otherButtonTitles:_:)

A variable number of Swift arguments is not supported.

UIAlertView.init()

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

All UIKit types →