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

Declared In

RBFormAlertViewController.h

  formSchema

The underlying form schema.

@property (nonatomic, nullable) RBManagedFormSchema *formSchema

Declared In

RBFormAlertViewController.h

  formValues

The current form values.

@property (nonatomic, nullable) NSDictionary *formValues

Declared In

RBFormAlertViewController.h

  buttonTitles

The titles of the buttons on the form alert.

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

Declared In

RBFormAlertViewController.h

  buttonIdentifiers

The identifiers of the buttons on the form alert.

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

Declared In

RBFormAlertViewController.h

  shouldOpenFirstFieldForEditing

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

@property (nonatomic) BOOL shouldOpenFirstFieldForEditing

Declared In

RBFormAlertViewController.h

  keyboardReturnAction

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

@property (nonatomic) RBManagedFormKeyboardReturnAction keyboardReturnAction

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

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

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

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

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

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.

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.

Declared In

RBFormAlertViewController.h