Hello I am trying to make the decimal keyboard on iOS go away but I have not been successful because there is no return key.
Asked
Active
Viewed 257 times
1
-
Try this out http://stackoverflow.com/questions/24126678/close-ios-keyboard-by-touching-anywhere-using-swift – Matt Jun 30 '15 at 20:27
-
1usually `resignFirstResponder` or something – njzk2 Jun 30 '15 at 20:27
1 Answers
-1
Try this,
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
self.view.endEditing(true)
}
When the user touches somewhere other than the keyboard/textfield, it will dismiss.

Rasputin
- 487
- 4
- 10