eltomato
eltomato

Reputation: 89

Keyboard doesn't dismiss for TextField in UITableViewCell

I have a strange problem with the iOS Keyboard.

In my app, I am using UITextFields inside some UITableViewCells. I want to dismiss the keyboard if the current textfield loses its focus.

This is what I've done so far:

But dismissing the keyboard by using the Done-Button works perfectly (using textFieldShouldReturn)

What am I doing wrong?

Edit: I've made a video of my problem: http://www.youtube.com/watch?v=Zuz5rCv2GCo

Upvotes: 0

Views: 671

Answers (1)

Castro Kitchner
Castro Kitchner

Reputation: 69

try implementing following:

-(void)textFieldDidBeginEditing:(UITextField *)textField
{
    [textField becomeFirstResponder];
}

-(void)textFieldDidEndEditing:(UITextField *)textField
{
    [self resignFirstResponder];
}

Upvotes: 0

Related Questions