title: iOS - Disable Scrolling when Editing Text Field
body: <p>I am trying to disable the scrolling (and preferably all background touches) when editing a uitextfiled.</p>
  
  <p>Here is the scenario:</p>
  
  <p>I have a ScrollView setup with several text fields.  Upon editing a text field I animate the view up/down so that the text field will sit just above where the keyboard/keypad will appear.  In the case where I changed the keyboard style to phone/number pad I have a subview setup with a done button available to dismiss the keyboard when editing is done.  All of the animation works as expected.  However, the user is able to scroll the background and select other fields.  I would like to disable this functionality so that all they can do is view what is shown on the screen and edit the one field.</p>
  
  <p>I've tried doing the [scrollView setUserInteractionEnabled:NO] which locks the scroll view in place, however the keyboard is not available to type information into the text field.  Again in the cases where the keyboard is set to phone/number pad my subview appears, just no keyboard.</p>
  
  <p>I have also tried setting the textfield being edited as the first responder but that seems to mess up the view entirely, probably due to my animation of the view subview.</p>
  
  <p>Is there a way for me to still animate the view the way I want and disable the scrolling of the scroll view, or all background touches in that view entirely?</p>