开发者

How do I adjust my content views so that they are not obscured by the keyboard?

开发者 https://www.devze.com 2023-01-13 04:28 出处:网络
When the keyboard slides up in my iPhone applica开发者_如何学Ction, it obscures a large portion of the screen.How do I adjust my views so that they are not hidden under the keyboard?You\'ll find nice

When the keyboard slides up in my iPhone applica开发者_如何学Ction, it obscures a large portion of the screen. How do I adjust my views so that they are not hidden under the keyboard?


You'll find nice code for that here. Just go to the section called : Moving Content That Is Located Under the Keyboard

You can use and adapt what the documentation said to move your view when the keyboard is visible.

Hope this helps !


I usually move up my whole UIView so you can see both keyboard and textfield

0

精彩评论

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