如何像在Messages.app中一样移动iPhone键盘? [英] How to move iPhone keyboard down like in Messages.app?

查看:100
本文介绍了如何像在Messages.app中一样移动iPhone键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

iOS应用程序中的iMessage样式消退键盘

在iOS5消息应用程序中,您可以在键盘上向下滑动手指以使其上下移动。这也可以在AppStore中的iA Writer应用程序中完成。如何在代码中执行此操作,即访问和修改UIKeyboard的Y位置?

In the iOS5 Messages app, you can slide your finger down on the keyboard to bring it up and down. This is also done in the iA Writer app in the AppStore. How can I do this in code, that is, access and modify the Y position of the UIKeyboard?

推荐答案

为什么重新发明轮子?有几个开源项目可以模仿messages.app后退键盘:

Why reinvent the wheel? There are several open-source projects available that mimick the messages.app receding keyboard:


  1. http://cocoacontrols.com/platforms/ios/controls/madismissivetextview

http://cocoacontrols.com/platforms/ios/controls/dakeyboardcontrol

http:/ /cocoacontrols.com/platforms/ios/controls/imessagekeyboardeffect

仅举几例。

这篇关于如何像在Messages.app中一样移动iPhone键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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