RBTextField Class Reference

Inherits from UITextField
Conforms to RBInputViewDelegate
Declared in RBTextField.h

Overview

A single-line text input field.

  textMargin

The margin of space to provide around the text.

@property (nonatomic) UIEdgeInsets textMargin

Discussion

The margin of space to provide around the text.

Declared In

RBTextField.h

  placeholderColor

The color of the placeholder text.

@property (nonatomic, nullable) UIColor *placeholderColor

Discussion

The color of the placeholder text.

Declared In

RBTextField.h

  leftViewMargin

The margin to apply to the left view.

@property (nonatomic) UIEdgeInsets leftViewMargin

Discussion

The margin to apply to the left view.

Declared In

RBTextField.h

  rightViewMargin

The margin to apply to the right view.

@property (nonatomic) UIEdgeInsets rightViewMargin

Discussion

The margin to apply to the right view.

Declared In

RBTextField.h

  shouldUpdateControlValueOnTextChange

Determines whether the control value will be updated live as text changes.

@property (nonatomic, readonly) BOOL shouldUpdateControlValueOnTextChange

Discussion

Determines whether the control value will be updated live as text changes.

Declared In

RBTextField.h

  shouldUpdateTextOnControlValueChange

Determines whether the text should be updated when the control value changes.

@property (nonatomic, readonly) BOOL shouldUpdateTextOnControlValueChange

Discussion

Determines whether the text should be updated when the control value changes.

Declared In

RBTextField.h

– textDidChange

Called when the text changes.

- (void)textDidChange

Discussion

Called when the text changes.

Declared In

RBTextField.h

  shouldBeginEditing

Whether or not the field should allow the keyboard to open when it is tapped.

@property (nonatomic, readonly) BOOL shouldBeginEditing

Discussion

Whether or not the field should allow the keyboard to open when it is tapped.

Declared In

RBTextField.h

– didBeginEditing

Called when the keyboard opened and editing has begun.

- (void)didBeginEditing

Discussion

Called when the keyboard opened and editing has begun.

Declared In

RBTextField.h

  shouldEndEditing

Whether or not the field should allow the keyboard to close.

@property (nonatomic, readonly) BOOL shouldEndEditing

Discussion

Whether or not the field should allow the keyboard to close.

Declared In

RBTextField.h

– didEndEditing

Called when the keyboard closed and editing has ended.

- (void)didEndEditing

Discussion

Called when the keyboard closed and editing has ended.

Declared In

RBTextField.h

– shouldChangeCharactersInRange:replacementString:

Whether or not to permit the user edit.

- (BOOL)shouldChangeCharactersInRange:(NSRange)range replacementString:(nonnull NSString *)string

Parameters

range

The range of the text that has been changed.

string

The string that the text has been changed to.

Return Value

Whether or not to permit the change.

Discussion

Whether or not to permit the user edit.

Declared In

RBTextField.h

  shouldClear

Whether or not the field should clear.

@property (nonatomic, readonly) BOOL shouldClear

Discussion

Whether or not the field should clear.

Declared In

RBTextField.h

  shouldReturn

Whether or not the field should return.

@property (nonatomic, readonly) BOOL shouldReturn

Discussion

Whether or not the field should return.

Declared In

RBTextField.h