KeyboardWillShow with UITextView
Posted
by Philip J
on Stack Overflow
See other posts from Stack Overflow
or by Philip J
Published on 2010-04-21T00:10:30Z
Indexed on
2010/04/21
0:13 UTC
Read the original article
Hit count: 550
iphone
|uitextview
Here's the setup:
I have a textView (txtReply) where the user puts information
I have a UIView that contains a scroll view and some labels, as well as the textView (ChatView)
When the user selects the textView, then it brings the keyboard up. I use 'keyboardWillAppear' to move the 'ChatView' up so that the text view is still visible. I then have a reply button that submits the message, draws it into the ChatView, and calls [textView resignFirstResponder].
However, when I do this, it calls the keyboardWillHide, my view resizes, then the it brings the keyboard back up again. Is there something special you have to do to get the keyboard to stay hidden?
Thanks
© Stack Overflow or respective owner