title: How to scroll the textfields when view is moved up?
body: <p>I have text fields on registration screen so when keyboard appears i am moving up the view up.Now i want to scroll through text fields when i my view is moved up.</p>
  
  <p><strong>code for moving view up:</strong></p>
  
  <pre><code>         CGRect rect = self.view.frame;
           rect.origin.y += 220;
           rect.size.height -= 220;
           self.view.frame = rect;
  </code></pre>
  
  <p><strong>Here is hirecrchy</strong></p>
  
  <p>I have <code>UIScrollView</code> at top then under <code>UIScrollView</code> i have <code>UIView</code> i call it as <code>contentView</code>.On the <code>contentView</code> i have added some text fields.So my parent view is moved up fine but i am not able to scroll the textFields up &amp; down when i view is up. I set the following value for scrolling.</p>
  
  <pre><code>    self.cvHeight.constant=500;
      self.scrollView.contentSize=CGSizeMake(500, 500);
  </code></pre>
  
  <p>Here <code>cvHeight</code> is outlet of height constraint of the <code>contentView</code> &amp; <code>scrollView</code> is outlet of <code>UIScrollView</code></p>
  
  <p><strong>Edit:</strong>
  When i am not moving the parentView up which is <code>self.view</code> then i am able to scroll through but if i move the parent view up then my textFields are not scrolling down they are just moving up.</p>