Instance Property

allowsEditingTextAttributes

A Boolean value indicating whether the user may edit the attributes of the text in the text field.

Declaration

@property(nonatomic) BOOL allowsEditingTextAttributes;

Discussion

If this property is set to YES, the user may edit the style information of the text. In addition, pasting styled text into the text field retains any embedded style information. If NO, the text field prohibits the editing of style information and strips style information from any pasted text. However, you can still set the style information programmatically using the methods of this class.

The default value of this property is NO.

See Also

Managing the Editing Behavior

editing

A Boolean value indicating whether the text field is currently in edit mode.

clearsOnBeginEditing

A Boolean value indicating whether the text field removes old text when editing begins.

clearsOnInsertion

A Boolean value indicating whether inserting text replaces the previous contents.

UITextFieldDidEndEditingReason

Constants indicating the reason why editing ended in a text field.

UITextFieldTextDidBeginEditingNotification

Notifies observers that an editing session began in a text field. The affected text field is stored in the object parameter of the notification. The userInfo dictionary is not used.

UITextFieldTextDidChangeNotification

Notifies observers that the text in a text field changed. The affected text field is stored in the object parameter of the notification.

UITextFieldTextDidEndEditingNotification

Notifies observers that the editing session ended for a text field. The affected text field is stored in the object parameter of the notification. The userInfo dictionary is not used.