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 3/4 I like this case:
yourPhonePadField.delegate = self
And override this function:
override func touchesBegan(_ touches: Set, with event: UIEvent?) { self.view.endEditing(true) }