Instance Property

autocapitalizationType

The auto-capitalization style for the text object.

Declaration

@property(nonatomic) UITextAutocapitalizationType autocapitalizationType;

Discussion

This property determines at what times the Shift key is automatically pressed, thereby making the typed character a capital letter. The default value for this property is UITextAutocapitalizationTypeSentences.

Some keyboard types do not support auto-capitalization. Specifically, this option is ignored if the value in the keyboardType property is set to UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, or UIKeyboardTypeNamePhonePad.

See Also

Managing Spelling and Autocorrection

UITextAutocapitalizationType

The auto-capitalization behavior of a text-based view. Used with the autocapitalizationType property.

autocorrectionType

The autocorrection style for the text object.

UITextAutocorrectionType

The autocorrection behavior of a text-based view. Used with the autocorrectionType property.

spellCheckingType

The spell-checking style for the text object.

UITextSpellCheckingType

The spell-checking behavior of a text-based view. Used with the spellCheckingType property.