Guest User

Untitled

a guest
May 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
  2. {
  3.     for (UIView* view in self.view.subviews)
  4.     {
  5.         if ([view isKindOfClass:[UITextField class]]) {
  6.             [view resignFirstResponder];
  7.         }
  8.        
  9.         if ([view isKindOfClass:[UITextView class]]) {
  10.             [view resignFirstResponder];
  11.         }
  12.     }
  13. }
Add Comment
Please, Sign In to add comment