I\'d like to know the simplest code to dismiss the number pad keyboard when tapping anywhere outside the number pad. It\'s a simple application to input a number inside a te
For Swift, the easiest for dismissing keypad for all text fields by tapping anywhere outside the text field is:
override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { self.view.endEditing(true) }