Enumeration

UITextAutocapitalizationType

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

Declaration

enum UITextAutocapitalizationType : Int

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 UIKeyboardType.numberPad, UIKeyboardType.phonePad, or UIKeyboardType.namePhonePad.

Topics

Constants

case none

Specifies that there is no automatic text capitalization.

case words

Specifies automatic capitalization of the first letter of each word.

case sentences

Specifies automatic capitalization of the first letter of each sentence.

case allCharacters

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

var autocapitalizationType: UITextAutocapitalizationType

The auto-capitalization style for the text object.

var autocorrectionType: UITextAutocorrectionType

The autocorrection style for the text object.

enum UITextAutocorrectionType

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

var spellCheckingType: UITextSpellCheckingType

The spell-checking style for the text object.

enum 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