Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
- {
- for (UIView* view in self.view.subviews)
- {
- if ([view isKindOfClass:[UITextField class]]) {
- [view resignFirstResponder];
- }
- if ([view isKindOfClass:[UITextView class]]) {
- [view resignFirstResponder];
- }
- }
- }
Add Comment
Please, Sign In to add comment