title: UITextField hiding behind keyboard
body: <p>I followed this tutorial <a href="http://www.mobisoftinfotech.com/blog/iphone/iphone-uitextfield-tutorial-handling-keyboard-interactions/" rel="nofollow">this tutorial </a> to avoid text field hiding behind keyboard. The problem lies when I use two views. View1 is calling View2 by pressing next button. both views has textfield and next button to it.  But the problem is this code is working for one view only means</p>
  
  <p><em>Case 1</em></p>
  
  <ol>
  <li>After I start ios simulator view1 loads which has one UITextField and one button </li>
  <li>I clicked on UITextField, then keyboard pops up and view is scrolable so if textfield is hide behind the keyboard it moves up. </li>
  <li>Then I press next button so it takes me to view2.</li>
  <li>Now on view2 I click UITextField then keyboard pops up but text field is behind keyboard and not able to scroll it up.</li>
  </ol>
  
  <p><em>Case 2</em></p>
  
  <ol>
  <li>After I start ios simulator view1 loads which has one UITextField and one button.</li>
  <li>This time I just pressed Next button without clicking on UITextField. So now I moved to view2 </li>
  <li>In view2 now I pressed UITextField, keyboard pops up and I was able to scroll the textfield up the keyboard.</li>
  </ol>
  
  <p>I dont know why this is happening it should work same for both the views. As given in link I created required files MIBackgroundTapDelegate.h,</p>
  
  <pre><code>MIScrollView.h
  MIScrollView.m
  ScrollableViewController.h
  ScrollableViewController.m
  </code></pre>