"IOS Human Interface Guidelines"--text Field

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.