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.
ACKeyboardObserver is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ACKeyboardObserver"
YANKE Guo, me@yanke.io
ACKeyboardObserver is available under the MIT license. See the LICENSE file for more info.