Text field
The text field accepts user input for a single line (including the target description and placeholder text, as shown below).
API NOTE
View Uitextfield Learn more about defining text fields and customizing the contents of the display images and buttons.
A text field:
- is a rounded area with a fixed height
- Automatically display the keyboard when the user taps it
- Can include system-provided buttons, such as bookmark buttons
- can display text that uses a variety of styles (see Uitextview Learn more about this)
Use a text field to get a small amount of information from the user.
If you can help users understand how to use them, you can customize a text field. For example, you can display a custom picture on the left or right side of the text field, or you can add a system-provided button, such as a bookmark button. In general, you should display its purpose on the left side of the text field, showing its extra features on the right, such as bookmarks.
if appropriate, a clear button appears to the right of the text field. When this element is present, clicking on it clears the contents of the text field, regardless of the image you have displayed on it.
If you can help the user understand the purpose of the text field, display a schematic. A text field can display placeholder text-such as a name (or address)-when there is no text in the text field.
define the type of keyboard that matches the type of content you want the user to enter. For example, you might want to make it easier for users to enter URLs, pins, or phone numbers. iOS offers a number of different keyboard types, each designed with a different type of input. View Uikeyboardtype and Uitextinputtraits Protocol Reference learn about keyboard types. Read managing the keyboard learn more about managing keyboard content in your app. Note that you cannot control the keyboard input method and layout, because these depend on the language setting used.
This article is translated from the official Apple development document to view the integration set: Https://github.com/Cloudox/iOS-Human-Interface-Guidelines All rights reserved: Http://blog.csdn.net/cloudox_
"IOS Human Interface Guidelines"--text Field