CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Mike Lazer-Walker.
A category on UIView that adds a single class method to animate a block with the same timing and animation curve as UIKeyboard given a keyboard will show/hide notification.
If you're not using CocoaPods, you should be able to just drag the two files in the Classes
folder into your project.
#import <UIView+MWKeyboardAnimation.h>
- (void)keyboardWillShow:(NSNotification *)notification {
[UIView animateWithKeyboardNotification:notification animations:^(CGRect keyboardFrame) {
someView.frameHeight -= CGRectGetHeight(keyboardFrame);
}];
}
Mike Walker