Index

Redbeard Theme Reference V1.0

RBLabel : UILabel

Properties


activityView

Type: RBActivityView

The theme of the managed activity indicator on the view.

adjustsFontSizeToFitWidth

Type: decimal

true or false

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.

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

borderWidth

Type: decimal

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

contentMode

Type: UIViewContentMode

The content mode of the view.

Options:

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

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

hidden

Type: boolean

Whether or not the view is hidden.

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.

lineBreakMode

Type: NSLineBreakMode

Options:

  • clipping
  • truncatemiddle
  • wordwrap
  • truncatetail
  • truncatehead
  • charwrap

minimumScaleFactor

Type: decimal

0.0 to 1.0

numberOfLines

Type: decimal

The maximum number of lines of text to display until cropping - 0 for unlimited lines.

padding

Type: UIEdgeInsets

The padding to provide around the label text.

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

text

Type: NSString

The default text string value of the label.

textAlignment

Type: NSTextAlignment

Options:

  • justified
  • natural
  • center
  • right
  • left

textColor

Type: UIColor

textColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

textShadowColor

Type: UIColor

textShadowColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

textShadowOffset

Type: CGSize

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.

userActionsEnabled

Type: boolean

Whether or not user interaction (e.g. press-hold and copy) is enabled on the label.