I recently upgraded to latest Xcode version and converted my project to Swift 2.3. Until 2.2, when I displayed an UIAlertController
I dismissed the keyboard with the classic
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?){
view.endEditing(true)
super.touchesBegan(touches, withEvent: event)
}
Well, it doesn't work anymore. Tried to change textView's UIKeyboardType
and returnKeyType
. No luck. Any thoughts?