您的位置:首页 > 编程语言

不需要一行代码解决键盘遮挡的问题

2016-06-23 11:05 288 查看
    今天无意中发现一个很不错的开源框架,
IQKeyboardManager
,作者是这样介绍的:Often while developing an app, We ran into an issues where the iPhone keyboard slide up and cover the
UITextField/UITextView
.
IQKeyboardManager

allows you to prevent issues of the keyboard sliding up and cover
UITextField/UITextView
without needing you to enter any code and no additional setup required. To use
IQKeyboardManager
you simply need to add source files to your project.大概意思就是我们在开发app的过程中经常遇到键盘遮挡
UITextField/UITextView
这样的问题,而
IQKeyboardManager
正好解决这一问题,使用它的时候不用你写任何代码,就能到达你想要的效果.本人亲自测了一下确实如此,只需要在Podfile文件中引入pod
'IQKeyboardManager安装即可,超级方便.大家可以去github中下载最新demo体验Source: https://github.com/hackiftekhar/IQKeyboardManager.git.

   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: