RBAlertViewController Class Reference

Inherits from UIViewController
Declared in RBAlertViewController.h

Overview

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

  delegate

The delegate to be informed of button selections by the user.

@property (nonatomic, weak, nullable) id<RBAlertViewControllerDelegate> delegate

Declared In

RBAlertViewController.h

  message

The message string to display on the alert.

@property (nonatomic, nullable) NSString *message

Declared In

RBAlertViewController.h

  attributedMessage

The attributed message to display on the alert.

@property (nonatomic, nullable) NSAttributedString *attributedMessage

Declared In

RBAlertViewController.h

  image

The image to display above the text.

@property (nonatomic, nullable) UIImage *image

Declared In

RBAlertViewController.h

  primaryButtonIndex

The index of the primary button. Default is 0, set -1 to exclude setting a primary button.

@property (nonatomic) NSInteger primaryButtonIndex

Declared In

RBAlertViewController.h

  buttonTitles

An array of button titles that define the buttons that will be provided.

@property (nonatomic, nullable) NSArray<NSString*> *buttonTitles

Declared In

RBAlertViewController.h

  positioner

The overall layout positioner used. You may theme this positioner. Default values = spacing = 10, dimensions = 1, margin = [10, 10, 10, 10], orientation = RBOrientationVertical, sizing = RBLayoutGridPositionerSizeEvenly.

@property (nonatomic, nonnull, readonly) RBLayoutGridPositioner *positioner

Declared In

RBAlertViewController.h

  buttonPositioner

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 = RBLayoutGridPositionerSizeEvenly.

@property (nonatomic, nonnull, readonly) RBLayoutGridPositioner *buttonPositioner

Declared In

RBAlertViewController.h

– sizeWithContainerSize:

Calculates the size that would be required to display the alert in the given available container size.

- (CGSize)sizeWithContainerSize:(CGSize)size

Parameters

size

The available container size.

Return Value

The size that would be required to present the alert view.

Declared In

RBAlertViewController.h