Latest 0.1.0
Homepage https://github.com/carlSQ/KeyboardManager
License MIT
Platforms ios 7.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo.

Installation

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

pod "KeyboardManager"

Usage

KeyboardManager in UIViewCintroller

You should call in viewWillAppear method


[self kba_keyboardAnimationWithWillStart:^(CGRect startKeyboardRect, CGRect keyboardRect, NSTimeInterval duration, BOOL willShow) {

}                              animation:^(CGRect startKeyboardRect, CGRect keyboardRect, NSTimeInterval duration, BOOL isShowing) {

  if (isShowing) {
    _inputBackgroundView.frame = CGRectMake(0, keyboardRect.origin.y-64, [UIScreen mainScreen].bounds.size.width, 64);
  } else {
    _inputBackgroundView.frame = CGRectMake(0, [UIScreen mainScreen].bounds.size.height, [UIScreen mainScreen].bounds.size.width, 64);
  }

}
animationComplete:^(BOOL finished) {

}];

KeyboardManager in UIView

You should call before UIViewCintroller viewWillAppear method


[view kba_keyboardAnimationWithWillStart:nil
                               animation:^(CGRect startKeyboardRect, CGRect endKeyboardRect, NSTimeInterval duration, BOOL isShowing) {
                                   ...
                                }
                       animationComplete:nil];

License

KeyboardManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "KeyboardManager",
    "version": "0.1.0",
    "summary": "Keyboard Animation Manager",
    "description": "Keyboard Animation easy manager.",
    "homepage": "https://github.com/carlSQ/KeyboardManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "qiang.shen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/carlSQ/KeyboardManager.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "Classes/**/*"
}

Pin It on Pinterest

Share This