title: How to dismiss keyboard from childViewController which is in containerView in parentViewController?
body: <p>I need to dismiss keyboard which show itself when I click <code>UITextField</code> from childView. I need to do this in method (<code>scrollViewWillBeginEditing</code>) which is in parentViewController. How can I do it?</p>
  
  <p>EDIT:</p>
  
  <p>I have method in childViewController:</p>
  
  <pre><code>- (void)dismissKeyboard {
      [self.textField resignFirstResponder];
      NSLog(@"%@", self.textField.text);
  }
  </code></pre>
  
  <p>and .h of childViewController:</p>
  
  <pre><code>@protocol VVInformationTableViewControllerDelegate&lt;NSObject, UIScrollViewDelegate&gt;
  -(void)dismissKeyboard;
  @end
  
  @interface VVInformationTableViewController : UITableViewController &lt;UITextFieldDelegate, UITableViewDelegate, UIScrollViewDelegate, VVInformationTableViewControllerDelegate&gt;
  
  @property (weak, nonatomic) id&lt;VVInformationTableViewControllerDelegate&gt; delegate;
  </code></pre>
  
  <p>and I try to call it in:</p>
  
  <pre><code>-(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{
          [self.infoTableController dismissKeyboard];    
  }
  </code></pre>
  
  <p>When it is call then NSLog print (null) and keyboard didn't dismiss, but when I call dismissKeyboard from childViewController then it print true value and keyboard dismiss.</p>
  
  <p>Any help?</p>