1

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.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Michael Paniccia
  • 911
  • 1
  • 6
  • 7

1 Answers1

-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