I have two UITextFields (e.g. username and password) but I cannot get rid of the keyboard when pressing the return key on the keyboard. How can I do this?
UITextFields
Took me couple trials, had same issue, this worked for me:
Check your spelling at -
(BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder];
I corrected mine at textField instead of textfield, capitalise "F"... and bingo!! it worked..
textField
textfield