Enumeration

UITextAutocapitalizationType

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

Declaration

typedef enum UITextAutocapitalizationType : NSInteger {
    ...
} UITextAutocapitalizationType;

Overview

If the script system does not support capitalization, the keyboard input method ignores these constants.

Some keyboard types do not support auto-capitalization. Specifically, these constants are ignored if the keyboardType property is set to UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, or UIKeyboardTypeNamePhonePad.

Topics

Constants

UITextAutocapitalizationTypeNone

Specifies that there is no automatic text capitalization.

UITextAutocapitalizationTypeWords

Specifies automatic capitalization of the first letter of each word.

UITextAutocapitalizationTypeSentences

Specifies automatic capitalization of the first letter of each sentence.

UITextAutocapitalizationTypeAllCharacters

Specifies automatic capitalization of all characters, such as for entry of two-character state abbreviations for the United States.

See Also

Managing Spelling and Autocorrection

autocapitalizationType

The auto-capitalization style for the text object.

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software