IOS Dismiss Keyboard

  1. Open the xib file
  2. Select the xib’s view object
  3. Under Identity Inspector, set the class to UIControl
  4. Under Connections Inspector, the touch events should now be accessible
  5. Link the touchupinside event to an IBAction
  6. Use resignFirstResponder method to dismiss all textfields that calls the keyboard
Advertisement
This entry was posted in IOS. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s