RBFormAlertViewController Class Reference

Inherits from UIViewController
Declared in RBFormAlertViewController.h

Overview

A managed form alert view controller. Used by UIViewController+ManagedFormAlert.h.

  delegate

A delegate to receive form events such as submission and button taps.

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

Discussion

A delegate to receive form events such as submission and button taps.

Declared In

RBFormAlertViewController.h

  formSchema

The underlying form schema.

@property (nonatomic, nullable) RBManagedFormSchema *formSchema

Discussion

The underlying form schema.

Declared In

RBFormAlertViewController.h

  formValues

The current form values.

@property (nonatomic, nullable) NSDictionary *formValues

Discussion

The current form values.

Declared In

RBFormAlertViewController.h

  buttonTitles

The titles of the buttons on the form alert.

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

Discussion

The titles of the buttons on the form alert.

Declared In

RBFormAlertViewController.h

  buttonIdentifiers

The identifiers of the buttons on the form alert.

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

Discussion

The identifiers of the buttons on the form alert.

Declared In

RBFormAlertViewController.h

  shouldOpenFirstFieldForEditing

Whether or not the first editable field should be selected when the form opens.

@property (nonatomic) BOOL shouldOpenFirstFieldForEditing

Discussion

Whether or not the first editable field should be selected when the form opens.

Declared In

RBFormAlertViewController.h

  keyboardReturnAction

The action that should be performed when the keyboard return button is tapped.

@property (nonatomic) RBManagedFormKeyboardReturnAction keyboardReturnAction

Discussion

The action that should be performed when the keyboard return button is tapped.

Declared In

RBFormAlertViewController.h

  formPositioner

The RBLayoutPositioner to handle the layout of form elements. Default = See positioner on RBManagedFormView for default. You may theme this positioner.

@property (nonatomic, nonnull) RBLayoutPositioner *formPositioner

Discussion

The RBLayoutPositioner to handle the layout of form elements. Default = See positioner on RBManagedFormView for default. You may theme this positioner.

Declared In

RBFormAlertViewController.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

RBFormAlertViewController.h

  buttonPositioner

The layout positioner used for the buttons. You may theme this positioner. Default values = spacing = 10, dimensions = 1, margin = [0, 0, 0, 0], 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 = [0, 0, 0, 0], orientation = RBOrientationVertical, sizing = RBLayoutGridPositionerSizingToExpand.

Declared In

RBFormAlertViewController.h

– sizeWithContainerSize:

The size required to present the form in the given available container size.

- (CGSize)sizeWithContainerSize:(CGSize)containerSize

Parameters

containerSize

The available container size.

Return Value

The size required to present the form.

Discussion

The size required to present the form in the given available container size.

Declared In

RBFormAlertViewController.h

– setButtons:withTitles:

Defines the buttons that will be provided.

- (void)setButtons:(nonnull NSArray<NSString*> *)identifiers withTitles:(nonnull NSArray<NSString*> *)titles

Parameters

identifiers

The unique identifier for each button. Note you may use the pre-defined identifier constants formAlertSubmitButtonIdentifier and formAlertCancelButtonIdentifier to easily add submit and cancel buttons that call the submitForm and cancelFrom methods on the managed form.

titles

The buttons titles.

Discussion

Defines the buttons that will be provided.

Declared In

RBFormAlertViewController.h