I have some UITextFields which bring the keyboard open.
My question is, how can I detect a touch on the screen that is NOT in ANY UITextField
Pseudocode of what I need:
if(screen is touched)
if(touched view is NOT a UITextField)
[self.view endEditing:YES];
Is there an easy way to accomplish this? Or another easier way to hide the keyboard when a UITextField is not touched?
Thanks!