How to make the input text text fill in the part only add numbers,

Source: Internet
Author: User
Tags add numbers

1 in the Strorybord interface click on the selected text on the right of the third control bar found that there is a property for keyboard to adjust it from the original fefault to number pad is OK,

2 in the Clearbutton control bar from the original never appears changed to appears while editing on it,

3 option in taskbar secure put it on the line, make the password into ******

4//In the Implementation section add [self. Implementation name Resignfirstresponder]; it's OK, but this method needs to be added for all keyboard text in the implementation section

= = "The convenient way is simply to add [self. View Endediting:yes] in the implementation section;

5 add [Self] inside the button method you created. The name of the text you want to implement is becomefirstrseponder]; it's OK, and when you click on the button, the text keyboard you added will automatically pop up.

(The principle is as the name implies, let you specify the text to become the first responder instead of giving up the first responder is [self. Implementation name Resignfirstresponder] will not achieve this phenomenon)

6 on the right side of the button, there are four attributes in state Config and the second is highlighted (when clicked) Selected (When selected) Disabled (when the button is disabled)

After clicking on select highlighted, you need to fill in the text after the button changes in the bottom position, then you can change the color,

How to make the input text text fill in the part only add numbers,

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.