Text Field Element
Table 1 lists the keys that may be placed in a dictionary that is associated with the PSTextFieldSpecifier
type.
Key | Value type | Value |
---|---|---|
| String | The value of this key is always set to This key is required. |
| String | The string displayed to the left of the text field’s value. This string is drawn left aligned and in bold face. If you omit this key, the editable text field spans the width of the row. The value of this key is localizable. |
| String | The preference key with which to associate the value. This is the string you use this to retrieve the preference value in your code. This key is required. |
| String | The default value for the preference key. This value is returned when the specified preferences key (represented by the |
| Boolean | If Yes, the text field is a password-entry text field, which replaces the typed text with bullet characters. If No, the text field is a standard text field that displays the typed text. If this key is not present, the default is No. |
| String | The type of keyboard to display to the user. This value must contain one of the following strings: If this key is not present, the default value is |
| String | The auto-capitalization style to apply to typed text. This value must contain one of the following strings: If this key is not present, the default value is |
| String | The auto-correction style to apply when typing. This value must contain one of the following strings: If this key is not present, the default value is |
| Array | Indicates that the element is displayed only on specific types of devices. The value of this key is an array of strings with the supported idioms. Include the string “Phone” to display the element on iPhone and iPod touch. Include the string to “Pad” to display it on iPad. This key is available in iOS 4.2 and later. |
For more information about the keyboards, auto-capitalization, and auto-correction options used by text fields, see the constants defined in UITextInputTraits Protocol Reference.
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-12-12