<<<<<<< HEAD
To run the example project, clone the repo, and run pod install
from the Example directory first.
TLKeyboardUtil-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TLKeyboardUtil-Swift"
let dd:TLKeyboardUtil=TLKeyboardUtil.sharedInstance;
dd.addKeyboardAutoPopWithView(UIVIew: self.view);
只需简单地两行代码,就可以给你的项目添加上键盘弹出功能。
/**
* 给根视图添加键盘自动弹出功能
*
* @param rootView 根视图,
*/
func addKeyboardAutoPopWithView(UIVIew view:UIView);
如果想在那个View上添加键盘弹出功能,就可以指定对应的View;
一般我们会在控制器的根目录上的View上增加
addKeyboardAutoPopWithView(根View)
即可。
Andrew, anluanlu123@163.com
键盘弹出类库
f2abe36cfdbc7fabae54b4faff1f8a6dd7b31118