While displaying an alert(Wrong password) in IOS 8, keyboard opens automatically and hide the alert
(just in Iphone 4s because of the screen's size), so I can't click in "OK" and I also can't dismiss keyboard because first I need to close the alert
!
(It seems the app is recovering last keyboard's state and showing up again)
How can I close the keyboard before calling the alert
?(this way the state will be "closed")
I've tried:
myTextField!.resignFirstResponder()
While calling the button, but it didn't work, the alert
shows up and automatically the keyboard opens over it !