Inherits from UITextField
Declared in OCAUtilities.h

Overview

Category extensions to UITextField

Tasks

Accessing the Text Attributes

Drawing and Positioning

Properties

clearButtonEdgeInsets

The inset or outset margins for the edges of the clear button drawing rectangle.

@property (nonatomic, assign) UIEdgeInsets clearButtonEdgeInsets

Discussion

Use this property to resize and reposition the effective drawing rectangle for the clear button content. You can specify a different value for each of the four insets (top, left, bottom, right), but only the top and right insets are respected. A positive value will move the clear button farther away from the top right corner. Use the UIEdgeInsetsMake function to construct a value for this property.

The default value is UIEdgeInsetsZero.

Declared In

OCAUtilities.h

placeholderTextColor

The color of the placeholder text.

@property (nonatomic, strong) UIColor *placeholderTextColor

Discussion

This property applies to the entire placeholder text string. The default value for this property is set by the system. Setting this property to nil will use the system placeholder text color.

The default value is nil.

Declared In

OCAUtilities.h

textEdgeInsets

The inset or outset margins for the edges of the text content drawing rectangle.

@property (nonatomic, assign) UIEdgeInsets textEdgeInsets

Discussion

Use this property to resize and reposition the effective drawing rectangle for the text content. You can specify a different value for each of the four insets (top, left, bottom, right). A positive value shrinks, or insets, that edge—moving it closer to the center of the button. A negative value expands, or outsets, that edge. Use the UIEdgeInsetsMake function to construct a value for this property.

The default value is UIEdgeInsetsZero.

Declared In

OCAUtilities.h