在iPhone中打开键盘时如何调整视图位置? [英] How to adjust the view position when the keyboard opens in iPhone?

查看:135
本文介绍了在iPhone中打开键盘时如何调整视图位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在大于屏幕面积50%的表单中,输入将出现在键盘下方. 我想调整视图以使选定的输入在键盘显示时始终可见,并在键盘消失时重置其位置.

In forms that are longer than 50% of the screen area, inputs will appear underneath the keyboard. I want to adjust the view to keep the selected input always visible when the keyboard shows and reset its position when the keyboard disappears.

有什么想法吗? 谢谢.

Any ideas? Thanks.

推荐答案

The section Managing the Keyboard in the iPhone Application Programming Guide discusses how to receive notifications of keyboard display/undisplay, as well as how to keep your content visible (including sample code).

这篇关于在iPhone中打开键盘时如何调整视图位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆