We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[self.view.subviews enumerateObjectsUsingBlock:^(UIView* obj, NSUInteger idx, BOOL *stop) { if ([obj isKindOfClass:[UITextField class]]) { [obj resignFirstResponder]; } }];
}
you can do it like this:
[self.view endEditing:YES];