CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2018 |
Maintained by Robert Dimitrov.
Simple and powerful scrollView, taking care of moving content from underneath the keyboard.
Drop the RDVKeyboardAvoidingScrollView.h
and RDVKeyboardAvoidingScrollView.m
into your project. If you don't have ARC
enabled, you will need to set a -fobjc-arc
compiler flag on the .m
source file. For use with UIViewController
classes,
include RDVKeyboardAvoidingScrollView.h
in your UIViewController
subclass and set its view to be an instance of this class.
If you are using a xib file, set the view's class in the Identity Inspector
.
Initialize view controller's view to be an instance of RDVKeyboardAvoiding
:
- (void)loadView {
CGRect applicationFrame = [[UIScreen mainScreen] applicationFrame];
RDVKeyboardAvoidingScrollView *scrollView = [[RDVKeyboardAvoidingScrollView alloc] initWithFrame:applicationFrame];
[scrollView setAutoresizingMask:UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth];
// code...
self.view = scrollView;
}
RDVKeyboardAvoiding is available under the MIT license. See the LICENSE file for more info.