Instance Property

secureTextEntry

Identifies whether the text object should disable text copying and in some cases hide the text being entered.

Declaration

@property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry;

Discussion

This property is set to NO by default. Setting this property to YES in any view that conforms to UITextInputTraits disables the user’s ability to copy the text in the view. Setting this property to YES in a UITextField object additionally enables a password-style experience, in which the text being entered is obscured.

See Also

Managing the Keyboard Behavior

enablesReturnKeyAutomatically

A Boolean value indicating whether the Return key is automatically enabled when the user is entering text.