title: resignFirstResponder not hiding keyboard
body: <p>I have three textfield.</p>
  
  <pre><code>vacDate
  vacTime
  vacType
  </code></pre>
  
  <p>When I click <code>vacDate</code> or <code>vacTime</code>, I show datepicker <code>myDatePicker</code>. </p>
  
  <p>Also when I click anywhere I call hideAllKeyboards which hides all keyboards and datepicker.</p>
  
  <pre><code>- (void)textFieldDidBeginEditing:(UITextField *)textField {
      NSLog(@"textFieldDidBeginEditing===%@" , textField.text);
      CGAffineTransform translation = CGAffineTransformIdentity;
  
      myDatePicker.hidden = YES;
      if (textField==vacDate || textField==vacTime) {
          [vacDate resignFirstResponder];
          [vacTime resignFirstResponder];
          [vacType resignFirstResponder];
          myDatePicker.hidden = NO;
      }
  
  
      if (textField==vacType) {
          translation = CGAffineTransformMakeTranslation(0, -60);
      }
  
      [UIView beginAnimations:nil context:nil];
      self.view.transform = translation;
      [UIView commitAnimations];
  }
  
  -(IBAction)hideAllKeyboards {
      NSLog(@"hideAllKeyboards...");
      [vacDate resignFirstResponder];
      [vacTime resignFirstResponder];
      [vacType resignFirstResponder];
      myDatePicker.hidden = YES;
  
      NSLog(@"my date data is %@", myDatePicker.date);
  
      NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
      [dateFormatter setDateFormat:@"dd-MM-yyyy"];
      NSString *strDate = [dateFormatter stringFromDate:[myDatePicker date]];
      NSLog(@"my date is ::: %@", strDate);
      vacDate.text = strDate;
  
      dateFormatter = [[NSDateFormatter alloc] init];
      [dateFormatter setDateFormat:@"hh mm a"];
      strDate = [dateFormatter stringFromDate:[myDatePicker date]];
      NSLog(@"my date is ==%@==", strDate);
      strDate = [strDate stringByReplacingOccurrencesOfString:@" " withString:@":"];
      strDate = [strDate stringByReplacingOccurrencesOfString:@":A" withString:@" A"];
      strDate = [strDate stringByReplacingOccurrencesOfString:@":P" withString:@" P"];
      vacTime.text = strDate;
  
  
      [UIView beginAnimations:nil context:nil];
      self.view.transform = CGAffineTransformIdentity;
      [UIView commitAnimations];
  
  }
  </code></pre>
  
  <p>Below is what I am doing.</p>
  
  <p>Tap on vacDate and then set time. Once time is set, tap anywhere. Date and time gets set in vacDate and vacTime. Now I go to vacType and type text and then click Done. Now all keyboards are getting hided.</p>
  
  <p>Now again I click on vacType. Now I see the keyboard (default). Now I click vacDate or vacTime. <strong>Here I was expecting to display datepicker as happened at first step, but I see default keyboard</strong>.</p>
  
  <p>Any idea why resignFirstResponder is not working on all keyboards. As keyboards don't call resignFirstResponder, I am not able to see datepicker.</p>
  
  <hr>
  
  <h2>Edit 1</h2>
  
  <p>With the code I have, I noticed that when I type in vacType and then click back to vacDate or vacTime, I see upper part of datepicker, but the default keyboard is not hided. I still see the default keyboard. I want to hide this keyboard forcefully.</p>