UIView(FormField) Category Reference

Declared in UIView+FormField.h

Overview

Form field value and validation management.

  didValidate

Whether or not the field did validate.

@property (nonatomic) BOOL didValidate

Declared In

UIView+FormField.h

  validationProcessed

Whether or not validation has been performed on the field.

@property (nonatomic) BOOL validationProcessed

Declared In

UIView+FormField.h

  controlValue

The current value of the field.

@property (nonatomic, nullable) id controlValue

Declared In

UIView+FormField.h

  controlValueDelegate

The delegate to receive control value update events.

@property (nonatomic, weak, nullable) id<RBFormFieldValueDelegate> controlValueDelegate

Declared In

UIView+FormField.h

– updateFormFieldThemeState

Updates the theme state of the field according to it’s validation status.

- (void)updateFormFieldThemeState

Declared In

UIView+FormField.h

– setControlValueWithoutInvokingEventsAndDelegates:

Sets the controlValue property without calling events such as controlValueWillChangeTo:, controlValueDelegate … Useful when setting inital values or programmtically setting values.

- (void)setControlValueWithoutInvokingEventsAndDelegates:(nullable id)controlValue

Parameters

controlValue

The control value to set.

Declared In

UIView+FormField.h

  isFormField

Whether or not this view is a form field.

@property (nonatomic, readonly) BOOL isFormField

Declared In

UIView+FormField.h

  formFieldDoesUseInputView

Whether or not the form field uses an input view to edit.

@property (nonatomic, readonly) BOOL formFieldDoesUseInputView

Declared In

UIView+FormField.h

– processControlValueBeforeChange:

Called to preprocess the control value before it’s set.

- (nullable id)processControlValueBeforeChange:(nullable id)controlValue

Parameters

controlValue

The new control value.

Return Value

The processed new control value.

Declared In

UIView+FormField.h

– controlValueWillChangeTo:from:

Called when the control value will be updated.

- (void)controlValueWillChangeTo:(nullable id)controlValue from:(nullable id)fromControlValue

Parameters

controlValue

The new control value being assigned.

fromControlValue

The previous control value being replaced.

Declared In

UIView+FormField.h

– controlValueDidChangeTo:from:

Called when the control value was updated.

- (void)controlValueDidChangeTo:(nullable id)controlValue from:(nullable id)fromControlValue

Parameters

controlValue

The new control value being assigned.

fromControlValue

The previous control value being replaced.

Declared In

UIView+FormField.h