TLKeyboardUtil-Swift 2.0.0

TLKeyboardUtil-Swift 2.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Andrew.



  • By
  • Andrew

TLKeyboardUtil-Swift

<<<<<<< HEAD

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

OBjC对应的版本

objc版本

Installation

TLKeyboardUtil-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TLKeyboardUtil-Swift"

How to use

let dd:TLKeyboardUtil=TLKeyboardUtil.sharedInstance;
dd.addKeyboardAutoPopWithView(UIVIew: self.view);

只需简单地两行代码,就可以给你的项目添加上键盘弹出功能。

APIS

 /**
     *  给根视图添加键盘自动弹出功能
     *
     *  @param rootView 根视图,
     */
    func addKeyboardAutoPopWithView(UIVIew view:UIView);

如果想在那个View上添加键盘弹出功能,就可以指定对应的View; 一般我们会在控制器的根目录上的View上增加 addKeyboardAutoPopWithView(根View)即可。

Author

Andrew, [email protected]

License

TLKeyboardUtil-Swift is available under the MIT license. See the LICENSE file for more info.

键盘弹出类库

f2abe36cfdbc7fabae54b4faff1f8a6dd7b31118