Index

Redbeard Theme Reference V1.0

RBTextField

Properties

States

Property: invalidState

The theme to use when the field failed validation.

Property: validState

The theme to use when the field passed validation.


activityView

Type: RBActivityView

The theme of the managed activity indicator on the view.

alpha

Type: decimal (0.0 - 1.0)

The alpha channel of the view.

backgroundColor

Type: UIColor

The background color of the view.

backgroundColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

backgroundImage

Type: UIImage

The image to display as the background of the field.

backgroundImageTintColor

Type: UIColor

The tint color of the image.

borderColor

Type: UIColor

The color to use on the border on the view.

borderColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

borderEdges

Type: UIRectEdge

The edges on which to apply a border.

Options:

  • right
  • all
  • top
  • bottom
  • none
  • left

borderStyle

Type: UITextBorderStyle

The border style of the text field.

Options:

  • roundedrect
  • line
  • bezel
  • none

borderWidth

Type: decimal

The width of the border to use on the view in pt.

clearButtonMode

Type: UITextFieldViewMode

When to show clear button.

Options:

  • whileediting
  • unlessediting
  • always
  • never

contentHorizontalAlignment

Type: UIControlContentHorizontalAlignment

Options:

  • center
  • fill
  • right
  • left

contentMode

Type: UIViewContentMode

The content mode of the view.

Options:

  • left
  • right
  • scaleaspectfill
  • topleft
  • redraw
  • scaleaspectfit
  • bottomleft
  • scaletofill
  • bottomright
  • topright
  • center
  • bottom
  • top

contentVerticalAlignment

Type: UIControlContentVerticalAlignment

Options:

  • bottom
  • top
  • fill
  • center

cornerRadius

Type: decimal

The rounded corner radius to use on the view in pt.

corners

Type: UIRectCorner

The corners that should be rounded.

Options:

  • all
  • bottomleft
  • topleft
  • bottomright
  • topright

font

Type: UIFont

The font for the text.

hidden

Type: boolean

Whether or not the view is hidden.

keyboardAppearance

Type: UIKeyboardAppearance

The keyboard appearance to use when the field is being edited.

Options:

  • default
  • light
  • dark

layerShadowColor

Type: UIColor

The color to use for the shadow on the view.

layerShadowColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

layerShadowOffset

Type: CGSize

The shadow offset to use.

layerShadowOpacity

Type: decimal

The shadow opacity to use on the view.

layerShadowRadius

Type: decimal

The shadow radius to use on the view in pt.

leftView

Type: UIView

The theme of the left view - theming options depend on the view type that was assigned.

leftViewImage

Type: UIImage

The image of the left view. An RBImageView will be automatically created to hold the image.

leftViewImageTintColor

Type: UIColor

The tint color of the image.

leftViewMargin

Type: UIEdgeInsets

The margin to provide around the left view.

leftViewMode

Type: UITextFieldViewMode

When to show the leftView.

Options:

  • whileediting
  • unlessediting
  • always
  • never

pillCorners

Type: UIRectCorner

Apply a pill effect. Note this will override any effect of the 'corners' and 'cornerRadius' properties.

Options:

  • all
  • bottomleft
  • topleft
  • bottomright
  • topright

placeholder

Type: NSString

The placeholder text to display when the field is empty.

placeholderTextColor

Type: UIColor

The color of the placeholder text.

placeholderTextColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

rightView

Type: UIView

The theme of the right view - theming options depend on the view type that was assigned.

rightViewImage

Type: UIImage

The image of the right view. An RBImageView will be automatically created to hold the image.

rightViewImageTintColor

Type: UIColor

The tint color of the image.

rightViewMargin

Type: UIEdgeInsets

The margin to provide around the right view.

rightViewMode

Type: UITextFieldViewMode

When to show the rightView.

Options:

  • whileediting
  • unlessediting
  • always
  • never

textAlignment

Type: NSTextAlignment

The alignment of the text in the field.

Options:

  • justified
  • natural
  • center
  • right
  • left

textColor

Type: UIColor

The color of the text.

textColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

textMargin

Type: UIEdgeInsets

The margin to provide around the text in the field.

tintColor

Type: UIColor

The tint color of the view.

tintColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

toastAlertView

Type: RBToastAlertView

The theme of the managed toast alerts on the view.