iphone xcode: keyboard can not be dismissed

By admin - Last updated: Monday, June 7, 2010 - Save & Share - Leave a Comment

Firstly, have you saved the interface builder explicitely after making changes for UITextFeild connection?

Secondly, check if you have set the delegate of e.g. UITextField’s delegate attribute to the class containing
the implementation of UITextFieldDelegate protocol.
which will look like

(BOOL)textFieldShouldReturn:(UITextField *)theTextField {
    if (theTextField == textField) {
        [textField resignFirstResponder];
    }
    return YES;
}

and make sure you save it.




Posted in iphone • Tags: Top Of Page

Write a comment


Captcha: − 1 = three