yankeguo-deprecated / ACKeyboardObserver

Home Page:http://blog.yanke.io/2014/10/28/ACKeyboardObserver.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ACKeyboardObserver

Version License Platform

Usage

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

  • Implement ACKeyboardObserverDelegate in view controller.
- (void)keyboardWillEmitEvent:(ACKeyboardEvent)event withChange:(ACKeyboardChange)change;
- (void)keyboardDidEmitEvent:(ACKeyboardEvent)event withChange:(ACKeyboardChange)change;
  • Initialize a instance.
self.keyboardObserver = [ACKeyboardObserver observerWithDelegate:self];
[self.keyboardObserver start];
  • Use ACKeyboardFastAnimate to create a keyboard-related animation in delegate methods.

Installation

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

pod "ACKeyboardObserver"

Author

YANKE Guo, me@yanke.io

License

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

About

http://blog.yanke.io/2014/10/28/ACKeyboardObserver.html

License:MIT License


Languages

Language:Objective-C 91.3%Language:Ruby 8.7%