a fast kit handle the keyboard cover issue
##Installation
DDKeyboardObserver is available through CocoaPods, to install
it simply add the following line to your Podfile:
pod 'DDKeyboardObserver'
Alternatively, you can just drag the files from DDKeyboardObserver/KeyboardObserver
into your own project.
import UIView+DDKeyboardObserver.h
in your project
for example:
- (void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
self.carryView.contentSize = CGSizeMake(0, self.carryView.frame.size.height);
// handle the toolView;
[self.toolView addKeyboardObserver];
// also handle the carry view;
[self.carryView addKeyboardObserver];
}
you can see more infomation in the example project.
- Xcode 6.3
- iOS 6.0
DeJohn Dong, [email protected]
DDKeyboardObserver is available under the MIT license. See the LICENSE file for more info.