https://github.com/yankeguo-deprecated/ackeyboardobserver
https://github.com/yankeguo-deprecated/ackeyboardobserver
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yankeguo-deprecated/ackeyboardobserver
- Owner: yankeguo-deprecated
- License: mit
- Created: 2014-11-04T19:08:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-04T19:10:07.000Z (over 10 years ago)
- Last Synced: 2024-05-20T17:33:21.256Z (about 1 year ago)
- Language: Objective-C
- Homepage: http://blog.yanke.io/2014/10/28/ACKeyboardObserver.html
- Size: 125 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ACKeyboardObserver
[](http://cocoadocs.org/docsets/ACKeyboardObserver)
[](http://cocoadocs.org/docsets/ACKeyboardObserver)
[](http://cocoadocs.org/docsets/ACKeyboardObserver)## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
- Implement `ACKeyboardObserverDelegate` in view controller.
```objective-c
- (void)keyboardWillEmitEvent:(ACKeyboardEvent)event withChange:(ACKeyboardChange)change;
- (void)keyboardDidEmitEvent:(ACKeyboardEvent)event withChange:(ACKeyboardChange)change;
```- Initialize a instance.
```objective-c
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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:pod "ACKeyboardObserver"
## Author
YANKE Guo, [email protected]
## License
ACKeyboardObserver is available under the MIT license. See the LICENSE file for more info.