iOS Issues Summary: 2014-12-2 xcode6 in Iphone5 simulator run TextField do not eject keyboard + click Return to receive keyboard

Source: Internet
Author: User

1, Xcode6 in the iphone5 simulator run TextField does not eject the keyboard

Hardware->keyboard->toggle software Keyboard manually activating the keyboard

2. Click Return to receive the keyboard
(1) Hold down CTRL, select TextField, and drag to Viewcontroller to connect the two.
(2) Add the @interface line in. h.
(3) Add code in. M:

-(BOOL) Textfieldshouldreturn: (Uitextfield *) TextField
{
if (TextField = = Self.addtextfield) {

Addtextfield is the name of the TextField

[TextField Resignfirstresponder];
}
return YES;

iOS Issues Summary: 2014-12-2 xcode6 in Iphone5 simulator run TextField do not eject keyboard + click Return to receive 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.