# rdvkeyboardavoiding **Repository Path**: mirrors/rdvkeyboardavoiding ## Basic Information - **Project Name**: rdvkeyboardavoiding - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-04-02 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RDVKeyboardAvoiding ![iPhone screenshot](https://raw.github.com/robbdimitrov/RDVKeyboardAvoiding/master/Screenshots/iPhone.png) Simple and powerful scrollView, taking care of moving content from underneath the keyboard. ## Installation ### CocoaPods If you're using [CocoaPods](http://www.cocoapods.org), simply add `pod 'RDVKeyboardAvoiding'` to your Podfile. ### Drag & Drop Add the items from `RDVKeyboardAvoiding` directory to your project. If you don't have ARC enabled, you will need to set a `-fobjc-arc` compiler flag on the `.m` source files. ## Setup 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`. ## Example Usage 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; } ``` ## Requirements * ARC * iOS 5.0 or later ## Contact [Robert Dimitrov](http://robbdimitrov.com) [@robbdimitrov](https://twitter.com/robbdimitrov) ## License RDVKeyboardAvoiding is available under the MIT license. See the LICENSE file for more info.