Created
September 6, 2012 13:54
-
-
Save paulstefanort/3656489 to your computer and use it in GitHub Desktop.
Hide keyboard when leaving focus on iOS controls
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
@interface ViewController | |
@end | |
@implementation ViewController | |
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { | |
[firstControl resignFirstResponder]; | |
[secondControl resignFirstResponder]; | |
[thirdControl resignFirstResponder]; | |
// ... | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment