0

How can I close the soft keyboard on both Android and iOS?
It seems to linger after the input field is already gone ( moved on to the next view ).

Idan Adar
  • 43,235
  • 10
  • 45
  • 83
ErikBrandsma
  • 1,345
  • 2
  • 15
  • 42

2 Answers2

0

On iOS, you must call:

[textView resignFirstResponder];

when the user is done editing. You can tell when the user is done in the -(BOOL)textFieldShouldEndEditing:(UITextField *)textField function

On Android, hopefully someone else can give you a good answer.

scott
  • 1,164
  • 7
  • 17
-1

press the back arrow in order to exit the keyboard

  • Thanks, but i want to do this programmatically ;) – ErikBrandsma Jan 20 '15 at 14:56
  • Here, we have developed applications for android tablets and we faced the same problem , there was nothing that we found so the back button was used. If you can find something post it please so code can be updated – user3228174 Jan 20 '15 at 19:40