Created
June 1, 2014 13:29
-
-
Save engmsaleh/420ea8885668c9879cae to your computer and use it in GitHub Desktop.
This is how to dismiss iOS keyboard when click on UIView background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event | |
{ | |
// dismiss keyboard when background is touched | |
[self.view endEditing:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment