title: UIScrollView and multiple UITextField
body: <p>I have a little problem with uitextfield &amp; uiscrollview, the problem is that when I click on uitextfield the keyboard hide the field, for solve this I use:</p>
  
  <pre><code>- (BOOL) textFieldShouldBeginEditing:(UITextField *)textField {
  
      CGRect viewFrame = self.scroll.frame;
      viewFrame.size.height -= 186;
      [self.scroll setFrame:viewFrame];
  
      return YES;
  }
  
  - (BOOL) textFieldShouldReturn:(UITextField *)textField{
  
      [self.scroll setFrame:CGRectMake(0, 0, 320, 480)];
  
      [self inserisciField];
  
      [textField resignFirstResponder];
  
      return YES;
  }
  </code></pre>
  
  <p>and all work, the problem is with multiple field, with a field selected if I change the field without click return the scroll view has a wrong size/positon but if I click return, then I Select a field, press return, change field, ecc...all work.</p>
  
  <p>I think that there is this problem because If I change field the scroll dimension was changed two time (the first time view frame.size.height -= 186, and another time with -=186) then I try to put this method</p>
  
  <pre><code>- (BOOL) textFieldShouldEndEditing:(UITextField *)textField {
  
      [self.scroll setFrame:CGRectMake(0, 0, 320, 480)];
  
      return YES;
  }
  </code></pre>
  
  <p>where I set the default size of frame, but nothing.</p>