键盘隐藏UITextField.怎么解决呢? [英] Keyboard hides UITextField. How to solve this?
本文介绍了键盘隐藏UITextField.怎么解决呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在屏幕底部有一个textField.当我开始编辑时,键盘会出现并隐藏textField.
I have a textField which is at bottom of the screen. When I begin editing, the keyboard appears and hides the textField.
有人可以建议如何解决这个问题吗?
Can anyone suggest how to solve this?
推荐答案
通常,您会将内容放在滚动视图中,并在出现键盘时将滚动视图上移.有很多教程,所以谷歌他们. Here
是其中之一他们.
Generally you would put your content in a scroll view and move your scroll view up when the keyboard appears. There are many tutorials out there so google them. Here
is one of them.
这篇关于键盘隐藏UITextField.怎么解决呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文