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
Discussion
The delegate to be informed of button selections by the user.
Declared In
RBAlertViewController.h
message
The message string to display on the alert.
@property (nonatomic, nullable) NSString *message
Discussion
The message string to display on the alert.
Declared In
RBAlertViewController.h
image
The image to display above the text.
@property (nonatomic, nullable) UIImage *image
Discussion
The image to display above the text.
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
Discussion
The index of the primary button. Default is 0
, set -1
to exclude setting a primary button.
Declared In
RBAlertViewController.h
buttonTitles
An array of button titles that define the buttons that will be provided.
@property (nonatomic, nullable) NSArray<NSString*> *buttonTitles
Discussion
An array of button titles that define the buttons that will be provided.
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 = RBLayoutGridPositionerSizingToExpand
.
@property (nonatomic, nonnull, readonly) RBLayoutGridPositioner *positioner
Discussion
The overall layout positioner used. You may theme this positioner. Default values =
spacing = 10,
dimensions = 1,
margin = [10, 10, 10, 10],
orientation = RBOrientationVertical
,
sizing = RBLayoutGridPositionerSizingToExpand
.
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 = RBLayoutGridPositionerSizingToExpand
.
@property (nonatomic, nonnull, readonly) RBLayoutGridPositioner *buttonPositioner
Discussion
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 = RBLayoutGridPositionerSizingToExpand
.
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.
Discussion
Calculates the size that would be required to display the alert in the given available container size.
Declared In
RBAlertViewController.h