title: UitextField resignFirstResponder does not work in scroll view
body: <p>I have 2 functions to resignFirstResponder but neither of them works when the textfields are in scrollview</p>
  
  <p>my functions:</p>
  
  <pre><code>-(BOOL)textFieldShouldReturn:(UITextField *)theTextField {
  
          if (theTextField == textField1) {
          [textField1 resignFirstResponder];
      }
      if (theTextField == textField2) {
          [textField2 resignFirstResponder];
      }
      if (theTextField == textField3) {
          [textField3 resignFirstResponder];
      }
  
  
      return YES;
  
  }
  
  - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
      UITouch *touch = [[event allTouches] anyObject];
      [textField1 resignFirstResponder];
      [textField2 resignFirstResponder];
      [textField3 resignFirstResponder];
  
  }
  </code></pre>
  
  <p>I have linked the scroll view in IB, I can not find out why it does not works there only when I click outside of scrollview.so it only responds to view, but why?I thougth that <code>[[event allTouches] anyObject]</code>    respond to ALLtouches at ANYObjects</p>
  
  <p>Thanks for help</p>