UIViewController(ManagedAlert) Category Reference

Conforms to RBAlertViewControllerDelegate
Declared in UIViewController+ManagedAlert.h

Overview

UIViewController managed alert.

  defaultAlertAnimator

The default animator to use when presenting the alert.

@property (nonatomic, nonnull) RBPresentationAnimator *defaultAlertAnimator

Discussion

The default animator to use when presenting the alert.

Declared In

UIViewController+ManagedAlert.h

  defaultAlertAlignment

The default vertical alignment to use when positioning the alert.

@property (nonatomic) RBVerticalAlignment defaultAlertAlignment

Discussion

The default vertical alignment to use when positioning the alert.

Declared In

UIViewController+ManagedAlert.h

  defaultAlertMargin

The default margin to use when positioning the alert.

@property (nonatomic) UIEdgeInsets defaultAlertMargin

Discussion

The default margin to use when positioning the alert.

Declared In

UIViewController+ManagedAlert.h

– alertWithSchema:animated:completion:

Presents a managed RBAlertViewController alert with the given schema.

- (void)alertWithSchema:(nonnull RBManagedAlertSchema *)schema animated:(BOOL)animated completion:(nullable AlertCompletionBlock)completion

Parameters

schema

The schema of the alert.

animated

Whether the presentation should be animated.

completion

An optional block to be called when the presentation has completed.

Discussion

Presents a managed RBAlertViewController alert with the given schema.

Declared In

UIViewController+ManagedAlert.h

– dismissAlertWithAnimation:completion:

Dismisses the top-most open alert.

- (BOOL)dismissAlertWithAnimation:(BOOL)animated completion:(nullable dispatch_block_t)completion

Parameters

animated

Whether the dismissal should be animated.

completion

An optional block to be called when the dismissal has completed.

Return Value

Whether or not there was an open alert to dismiss.

Discussion

Dismisses the top-most open alert.

Declared In

UIViewController+ManagedAlert.h