Q:

How to hide keybord while typing in iphone app

I have 2 textview one is on top and other is at bottom. When I am trying to write something on bottom textview keyboard is coming on screen and I am not able to see what I am typing.
How to make keyboard invisible or placed on perfect place while typing below textview?

A:

- (void)textViewDidBeginEditing:(UITextView *)textView {
    if (textView == bottomTextView) {
        CGRect frame = self.view.frame;
        frame.origin.y -= 250;
        self.view.frame = frame;
    }
}

- (void)textViewDidEndEditing:(UITextView *)textView {
    if (textView == bottomTextView) {
        CGRect frame = self.view.frame;
        frame.origin.y += 250;
        self.view.frame = frame;
    }
}

You can modify this 250 value.

A:

The Answer to your problem lies here buddy..
Sliding UITextFeilds when keyboard appears 
Its Best solution available.

