Index

RBAlertViewController.h

Protocols

Classes


RBAlertViewController

A view controller that displays an alert message with buttons. Used by UIViewController+Alert.h.

Properties

The delegate to be informed of button selections by the user.
public weak delegate RBAlertViewControllerDelegate? { get set }

The message string to display on the alert.
public message NSString? { get set }

The attributed message to display on the alert.
public attributedMessage NSAttributedString? { get set }

The image to display above the text.
public image UIImage? { get set }

The index of the primary button. Default is 0, set -1 to exclude setting a primary button.
public primaryButtonIndex int { get set }

An array of button titles that define the buttons that will be provided.
public buttonTitles [String]? { get set }

The overall layout positioner used. You may theme this positioner. Default values = spacing = 10, dimensions = 1, margin = [10, 10, 10, 10], orientation = RBOrientationVertical, sizing = RBGridPositionerSizeEvenly.
public positioner RBGridPositioner { get }

The layout positioner used for the buttons. You may theme this positioner. Default values = spacing = 10, dimensions = 1, margin = [10, 10, 10, 10], orientation = RBOrientationVertical, sizing = RBGridPositionerSizeEvenly.
public buttonPositioner RBGridPositioner { get }

Functions

Calculates the size that would be required to display the alert in the given available container size.
@param size : The available container size.
@returns The size that would be required to present the alert view.
- (CGSize)sizeWithContainerSize:(CGSize)size;