UITextfield将显示在键盘顶部-初学者 [英] UITextfield to be displayed on top of Keyboard - Beginner
问题描述
我有textboxes
.当我单击它时,键盘弹出.但是,由于uitextfield
位于下面的某个位置,所以当键盘弹出时它会被覆盖. (键盘显示在文本字段上方,因此用户无法看到它.)
I have textboxes
. When i click on it, the Keyboard pops out. but, since the uitextfield
is located some where below, it gets covered when the keyboard pops out. (The keyboard gets displayed above the text field, so the user is unable to see it).
我需要一种向上移动textfield
的方式,以便用户可以看到它. iPhone facebook
应用程序有一种解决方法,它们会在视图上缩小UIComponents
以便在顶部显示textfield
,因此它不会被键盘遮盖.
I need a way to move the textfield
up so that the user can see it. The iPhone facebook
app has a workaround, they shrink the UIComponents
on the view to display the textfield
on top, so it doesn't cover from the keyboard.
有人可以指出我的教程或示例代码吗?
Can someone point me to a tutorial or sample code to start with?
推荐答案
OPTION-1:您可以在以下链接中引用此代码作为答案:
OPTION-1: You can refer to this code which has been accepted as answer in this following link:
这肯定会为您提供帮助,并为您提供所需的解决方案.
This will surely help you and give you your required solution.
OPTION-2:这也是现成的教程:
http://www.edumobile. org/iphone/iphone-programming-tutorials/scrollview-example-in-iphone/
我想您一定会对此有所帮助
I think you would be surely helped by this one
选项3::您可以参考以下内容:
OPTION-3: You can refer to this:
OPTION-4: Apple文档:
希望这对您有所帮助.
这篇关于UITextfield将显示在键盘顶部-初学者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!