在iPhone的键盘顶部添加文本框和按钮 [英] adding a textbox and a button at the top of the keyboard on iphone

查看:109
本文介绍了在iPhone的键盘顶部添加文本框和按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在其旁边添加一个文本框和一个按钮.它们将在窗口的底部.然后,当我触摸文本框(键入内容)时,键盘将出现,整行(带有文本框和按钮)将向上滚动,并且键盘将位于它们的正下方.你能让我知道我该怎么做吗?

I want to add a text box and a button beside it. They will be at the bottom of the window. Then, when I touch the textbox (to type something), keyboard will appear and the whole row (with textbox and button) scrolls up and the keyboard will be right below them. Could you please let me know how can I do that?

有示例程序吗?

谢谢.

推荐答案

马特·加拉格尔(Matt Gallagher)在他的博客上发布了此内容:

Matt Gallagher posted this on his blog:

围绕UITextField滑动以避开键盘

这是您想要的逐步示例.

It is a step by step example of exactly what you want.

这篇关于在iPhone的键盘顶部添加文本框和按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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