Hide keyboard without referencing to textField


#1

I want to hide keyboard without referencing in text field, I have too many textFields and I don’t know which one is showing keyboard to do this: textField.dismissSoftInput();

there is other way to detect opened keyboard and hide it ?


#2

Try this,