The ScrollView touch screen keyboard does not go down in the ipad

advertisements

i have added the scrollview on the page when we click on the background the keyboard will not go down what can i do .Please any can help me or give some reference or tutorial.thanks in advance.

     -(IBAction)backGroundTouch
      {
         [txtUserName resignFirstResponder];

         [txtFirstName resignFirstResponder];

         [txtLastName resignFirstResponder];

         [txtNickName resignFirstResponder];

        [txtDisplayName resignFirstResponder];
     }


If you want to remove the keyboard on touching the scrollview means use the UIResponder delegate api for touches.

  • (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;

Resign first responder for all the text fields in this api.

Hopes this helps.