addButton
TypeScriptaddButton(title?: (string) | null): Promise<number>Swift declarationfunc addButton(withTitle title: String?) -> Intclass · iOS 2.0+ · Deprecated in iOS 9.0 · SDK 27.1
@MainActor class UIAlertViewaddButton(title?: (string) | null): Promise<number>Swift declarationfunc addButton(withTitle title: String?) -> IntbuttonTitle(buttonIndex: number): Promise<(string) | null>Swift declarationfunc buttonTitle(at buttonIndex: Int) -> String?dismiss(buttonIndex: number, animated: boolean): Promise<void>Swift declarationfunc dismiss(withClickedButtonIndex buttonIndex: Int, animated: Bool)static initCoder(coder: _Foundation_NSCoder): Promise<(UIAlertView) | null>Swift declarationinit?(coder: NSCoder)static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UIAlertView>Swift declarationinit(frame: CGRect)static initTitleMessageDelegateCancelButtonTitle(title?: (string) | null, message?: (string) | null, delegate?: (unknown) | null, cancelButtonTitle?: (string) | null): Promise<UIAlertView>Swift declarationconvenience init(title: String?, message: String?, delegate: Any?, cancelButtonTitle: String?)show(): Promise<void>Swift declarationfunc show()textField(textFieldIndex: number): Promise<(UITextField) | null>Swift declarationfunc textField(at textFieldIndex: Int) -> UITextField?get alertViewStyle(): Promise<UIAlertViewStyle>Swift declarationvar alertViewStyle: UIAlertViewStyle { get set }setAlertViewStyle(value: UIAlertViewStyle): Promise<void>Swift declarationvar alertViewStyle: UIAlertViewStyle { get set }get cancelButtonIndex(): Promise<number>Swift declarationvar cancelButtonIndex: Int { get set }setCancelButtonIndex(value: number): Promise<void>Swift declarationvar cancelButtonIndex: Int { get set }get delegate(): Promise<(unknown) | null>Swift declarationweak var delegate: AnyObject? { get set }setDelegate(value?: (unknown) | null): Promise<void>Swift declarationweak var delegate: AnyObject? { get set }get firstOtherButtonIndex(): Promise<number>Swift declarationvar firstOtherButtonIndex: Int { get }get message(): Promise<(string) | null>Swift declarationvar message: String? { get set }setMessage(value?: (string) | null): Promise<void>Swift declarationvar message: String? { get set }get numberOfButtons(): Promise<number>Swift declarationvar numberOfButtons: Int { get }get title(): Promise<string>Swift declarationvar title: String { get set }setTitle(value: string): Promise<void>Swift declarationvar title: String { get set }get isVisible(): Promise<boolean>Swift declarationvar isVisible: Bool { get }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)