Type Alias

UITextContentType

Constants that identify the semantic meaning expected for a text-entry area.

Declaration

typedef NSString *UITextContentType;

Topics

Type Properties

UITextContentTypeURL

Specifies the expectation of a URL.

UITextContentTypeAddressCity

Specifies the expectation of a city name.

UITextContentTypeAddressCityAndState

Specifies the expectation of a city name combined with a state name.

UITextContentTypeAddressState

Specifies the expectation of a state name.

UITextContentTypeCountryName

Specifies the expectation of a country name.

UITextContentTypeEmailAddress

Specifies the expectation of an email address.

UITextContentTypeFamilyName

Specifies the expectation of a family name.

UITextContentTypeFullStreetAddress

Specifies the expectation of a street address that fully identifies a location.

UITextContentTypeGivenName

Specifies the expectation of a given name.

UITextContentTypeJobTitle

Specifies the expectation of a job title.

UITextContentTypeLocation

Specifies the expectation of a location, such as a point of interest, an address, or another way to identify a location.

UITextContentTypeMiddleName

Specifies the expectation of a middle name.

UITextContentTypeName

Specifies the expectation of a name.

UITextContentTypeNamePrefix

Specifies the expectation of a prefix or title, such as “Dr.”.

UITextContentTypeNameSuffix

Specifies the expectation of a suffix, such as “Jr.”.

UITextContentTypeNickname

Specifies the expectation of a nickname.

UITextContentTypeOrganizationName

Specifies the expectation of an organization name.

UITextContentTypePostalCode

Specifies the expectation of a postal code.

UITextContentTypeStreetAddressLine1

Specifies the expectation of the first line of a street address.

UITextContentTypeStreetAddressLine2

Specifies the expectation of the second line of a street address.

UITextContentTypeSublocality

Specifies the expectation of a sublocality.

UITextContentTypeTelephoneNumber

Specifies the expectation of a telephone number.

UITextContentTypeUsername

The expectation that a text input area specifies an account or login name.

UITextContentTypePassword

The expectation that a text input area specifies a password.

UITextContentTypeNewPassword

The expectation that a text input area specifies a new password.

UITextContentTypeOneTimeCode

The expectation that a text input area specifies a single-factor SMS login code.

See Also

Configuring the Keyboard Appearance

keyboardType

The keyboard style associated with the text object.

UIKeyboardType

The type of keyboard to display for a given text-based view. Used with the keyboardType property.

keyboardAppearance

The appearance style of the keyboard that is associated with the text object

UIKeyboardAppearance

The appearance of the keyboard used by a text-based view. Used with the keyboardAppearance property.

returnKeyType

The visible title of the Return key.

UIReturnKeyType

The text string displayed in the Return key of a keyboard. Used with the returnKeyType property.

textContentType

The semantic meaning expected by a text input area.