- Open the xib file
- Select the xib’s view object
- Under Identity Inspector, set the class to UIControl
- Under Connections Inspector, the touch events should now be accessible
- Link the touchupinside event to an IBAction
- Use resignFirstResponder method to dismiss all textfields that calls the keyboard
Advertisement