RBFormAlertViewControllerDelegate Protocol Reference

Conforms to NSObject
Declared in RBFormAlertViewController.h

Overview

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

– formAlertViewController:didSubmitWithValues: required method

Called when the form is successfully submitted.

- (void)formAlertViewController:(nonnull RBFormAlertViewController *)formAlertViewController didSubmitWithValues:(nonnull NSDictionary *)values

Parameters

formAlertViewController

The RBFormAlertViewController object.

values

The form values that were submitted.

Declared In

RBFormAlertViewController.h

– formAlertViewControllerDidCancel: required method

Called when the form alert was cancelled.

- (void)formAlertViewControllerDidCancel:(nonnull RBFormAlertViewController *)formAlertViewController

Parameters

formAlertViewController

The RBFormAlertViewController object.

Declared In

RBFormAlertViewController.h

– formAlertViewController:buttonWasSelectedWithIdentifier: required method

Called when a form alert button was tapped.

- (void)formAlertViewController:(nonnull RBFormAlertViewController *)formAlertViewController buttonWasSelectedWithIdentifier:(nonnull NSString *)identifier

Parameters

formAlertViewController

The RBFormAlertViewController object.

identifier

The identifier of the button that was tapped.

Declared In

RBFormAlertViewController.h

– formAlertViewController:setupView:forIdentifier:

Called for each schema items corresponding UIView when the form is being setup.

- (void)formAlertViewController:(nonnull RBFormAlertViewController *)formAlertViewController setupView:(nonnull UIView *)view forIdentifier:(nonnull NSString *)identifier

Parameters

formAlertViewController

The RBFormAlertViewController object.

view

The UIView object that the schema with the provided identifier has created.

identifier

The identifier of the schema.

Declared In

RBFormAlertViewController.h

– formAlertViewController:fieldWithIdentifier:willUpdateFromValue:toValue:

Called when a field will have it’s value changed.

- (void)formAlertViewController:(nonnull RBFormAlertViewController *)formAlertViewController fieldWithIdentifier:(nonnull NSString *)identifier willUpdateFromValue:(nullable id)value toValue:(nullable id)newValue

Parameters

formAlertViewController

The RBFormAlertViewController object.

identifier

The identifier of the field.

value

The current value of the field.

newValue

The new value that will be assigned to the field.

Declared In

RBFormAlertViewController.h

– formAlertViewController:fieldWithIdentifier:didUpdateFromValue:toValue:

Called when a field value has changed.

- (void)formAlertViewController:(nonnull RBFormAlertViewController *)formAlertViewController fieldWithIdentifier:(nonnull NSString *)identifier didUpdateFromValue:(nullable id)previousValue toValue:(nullable id)value

Parameters

formAlertViewController

The RBFormAlertViewController object.

identifier

The identifier of the field.

previousValue

The previous value of the field.

value

The new value of the field.

Declared In

RBFormAlertViewController.h

– presentingViewControllerForFormAlertViewController:

Gets the view controller that should be used when presenting the photo library or camera.

- (nonnull UIViewController *)presentingViewControllerForFormAlertViewController:(nonnull RBFormAlertViewController *)formAlertViewController

Parameters

formAlertViewController

The RBFormAlertViewController object.

Return Value

The UIViewController to present with.

Declared In

RBFormAlertViewController.h