I have filled my view with ScrollView (same size as the view) and I\'m stuck at how to resign first responder when user tap elsewhere in the View (or the scrollview). Any id
This is what I do...
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideAllKeyboards)];
tapGesture.cancelsTouchesInView = NO;
[self.view addGestureRecognizer:tapGesture];
-(void) hideAllKeyboards {
[textField_1 resignFirstResponder];
[textField_2 resignFirstResponder];
[textField_3 resignFirstResponder];
.
.
.
[textField_N resignFirstResponder];
}