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 ).
Asked
Active
Viewed 228 times
0
Idan Adar
- 43,235
- 10
- 45
- 83
ErikBrandsma
- 1,345
- 2
- 15
- 42
-
Yet answered here: [Close Keyboard][1] [1]: http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard – Alessandro Verona Jan 20 '15 at 16:40
2 Answers
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
user3228174
- 29
- 3
-
-
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