Pregunta

i have tried some codes but did't working textfield return keyboardplease anyone help out.

i have tried some link also: How to make a UITextField in a table cell become first responder? enter image description here

¿Fue útil?

Solución

Confirm that you bind the delegate of textfield that you create with the view controller. And use this delegate method :-

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

This will hide the keyboard when return key is pressed.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top