开发者

Programmatically move a toolbar on top of the iPhone keyboard

How do I get the tool bar moving with the keyboard? (when it pops up) And down开发者_如何学Go again? (when it resigns as first responder)

I've tried doing some research, but a lot has changed in 4.0


Turns out you can do this put a UITextView in the toolbar, (you can even hide it)

textView.inputAccessoryView = myToolBar; 

in an init method, and you're done.

Dont forget to make sure your toolbar comes back!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜