My iPhone App has a numerical text-field (and some other controls). A num pad is shown when the user taps the text field. I like to dismiss this num pad (by [self.textField resignFirstResponder]
) as soon as the
user taps on the view's background (easy to detect) but also when the user taps on any other control!
How can I detect that the user taps outside the text field (but not necessarily on the background)?