Je voulais utiliser UITextContentType.init (rawValue :), mais le rawValue était un peu différent, donc je vais le lister moi-même.
UITextContentType | rawValue |
---|---|
.addressCity | address-level2 |
.addressCityAndState | address-level1+2 |
.addressState | address-level1 |
.countryName | country-name |
.creditCardNumber | cc-number |
.emailAddress | |
.familyName | family-name |
.fullStreetAddress | street-address |
.givenName | given-name |
.jobTitle | organization-title |
.location | location |
.middleName | additional-name |
.name | name |
.namePrefix | honorifix-prefix |
.nameSuffix | honorifix-suffix |
.newPassword | new-password |
.nickname | nickname |
.oneTimeCode | one-time-code |
.organizationName | organization |
.password | password |
.postalCode | postal-code |
.streetAddressLine1 | address-line1 |
.streetAddressLine2 | address-line2 |
.sublocality | address-level3 |
.telephoneNumber | tel |
.URL | url |
.username | username |
Je ne pense pas que je vais l'utiliser à nouveau, mais je ne l'ai pas trouvé après une recherche rapide, je vais donc le résumer.
Recommended Posts