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

Declared In

RBTextField.h

  placeholderColor

The color of the placeholder text.

@property (nonatomic, nullable) UIColor *placeholderColor

Declared In

RBTextField.h

  leftViewMargin

The margin to apply to the left view.

@property (nonatomic) UIEdgeInsets leftViewMargin

Declared In

RBTextField.h

  rightViewMargin

The margin to apply to the right view.

@property (nonatomic) UIEdgeInsets rightViewMargin

Declared In

RBTextField.h

  leftViewImage

Sets the leftView to an RBImageView with the give image. If nil is provided this removes any previously assigned RBImageView on the leftView. Setting nil only removes the RBImageView previously assigned if leftView contains another UIView it will NOT be set to nil.

@property (nonatomic, nullable) UIImage *leftViewImage

Declared In

RBTextField.h

  rightViewImage

Sets the rightView to an RBImageView with the give image. If nil is provided this removes any previously assigned RBImageView on the rightView. Setting nil only removes the RBImageView previously assigned if rightView contains another UIView it will NOT be set to nil.

@property (nonatomic, nullable) UIImage *rightViewImage

Declared In

RBTextField.h

  shouldUpdateControlValueOnTextChange

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

@property (nonatomic, readonly) BOOL shouldUpdateControlValueOnTextChange

Declared In

RBTextField.h

  shouldUpdateTextOnControlValueChange

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

@property (nonatomic, readonly) BOOL shouldUpdateTextOnControlValueChange

Declared In

RBTextField.h

– textDidChange

Called when the text changes.

- (void)textDidChange

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

Declared In

RBTextField.h

– didBeginEditing

Called when the keyboard opened and editing has begun.

- (void)didBeginEditing

Declared In

RBTextField.h

  shouldEndEditing

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

@property (nonatomic, readonly) BOOL shouldEndEditing

Declared In

RBTextField.h

– didEndEditing

Called when the keyboard closed and editing has ended.

- (void)didEndEditing

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.

Declared In

RBTextField.h

  shouldClear

Whether or not the field should clear.

@property (nonatomic, readonly) BOOL shouldClear

Declared In

RBTextField.h

  shouldReturn

Whether or not the field should return.

@property (nonatomic, readonly) BOOL shouldReturn

Declared In

RBTextField.h