开发者

ipad keyboard resize problem

开发者 https://www.devze.com 2023-03-13 12:48 出处:网络
I have a \"new message\" view controller in my app (just li开发者_StackOverflowke the system sms app) where there are two textfields, one for receivers and one for the message content. The problem is

I have a "new message" view controller in my app (just li开发者_StackOverflowke the system sms app) where there are two textfields, one for receivers and one for the message content. The problem is when I switch between the two textfields, the keyboard may resize (depending on the input method), and I don't get any keyboard notifications. This is rather embarrassing since the keyboard may cover the textfield, which is not what i want. How can I fix this?

thanks in advance.


You can set your controller as the delegate of your text fields and when textFieldShouldBeginEditing: or textFieldDidBeginEditing: is called, perform any necessary manipulations to your view to make sure the textField is visible.

0

精彩评论

暂无评论...
验证码 换一张
取 消