The return key form of the IOS replacement keyboard

Source: Internet
Author: User

The return key in the lower right corner of IOS has many forms, such as sending, wrapping, and so on, after following the proxy.

-(BOOL) Textfieldshouldreturn: (Uitextfield *) textfield{

returnYES;

This method, the system default return key word is newline, we can modify the system return when creating TextField prompt

Textfield.returnkeytype = Uireturnkeydone;?

As shown in the image on the right (this is the English version of the keyboard)


? There are other styles

Textfield.returnkeytype = Uireturnkeysend;

typedef ns_enum (Nsinteger, Uireturnkeytype) {

Uireturnkeydefault,

uireturnkeygo,//to

Uireturnkeygoogle,

uireturnkeyjoin,//Join

uireturnkeynext,//Next

Uireturnkeyroute,

uireturnkeysearch,//Search

uireturnkeysend,//Send

Uireturnkeyyahoo,

uireturnkeydone,//completed

Uireturnkeyemergencycall,

Uireturnkeycontinue Ns_enum_available_ios (9_0)

,};

Of course, to display Chinese, but also set info.plist in localization native development region for CN?

The return key form of the IOS replacement keyboard

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.