Latest 0.1.0
Homepage https://github.com/juanuribeo13/UIScrollView-Keyboard
License MIT
Platforms ios 7.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Juan Uribe/UIScrollView-Keyboard.svg?style=flat)](https://travis-ci.org/Juan Uribe/UIScrollView-Keyboard)
Version
License
Platform

Installation

UIScrollView-Keyboard is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'UIScrollView-Keyboard', '~> 0.1.0'

Usage

In the viewWillAppear: of your UIViewController call the startObservingKeyboardNotifications method on the UIScrollView you are using and in the viewWillDisappear: call stopObservingKeyboardNotifications.

If you also want to dismiss the keyboard when the user taps the screen, then call dismissKeyboardWithTap.

- (void)viewDidLoad
{

    [self.scrollView dismissKeyboardWithTap];
}

- (void)viewWillAppear:(BOOL)animated {

    [self.scrollView startObservingKeyboardNotifications];
}

- (void)viewWillDisappear:(BOOL)animated {

    [self.scrollView stopObservingKeyboardNotifications];
}

NOTE: The category uses notifications to know when the keyboard shows and hides, so remember to call stopObservingKeyboardNotifications.

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Juan Uribe, [email protected]

License

UIScrollView-Keyboard is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "UIScrollView-Keyboard",
    "version": "0.1.0",
    "summary": "A UIScrollView category to prevent the keyboard from hidding your view content.",
    "description": "                       UIScrollView-Keyboard is an UIScrollView category that helps you in an easy way to handlen                       when the keyboard appears and dissapears so it doesn't hide the contents on your view.n",
    "homepage": "https://github.com/juanuribeo13/UIScrollView-Keyboard",
    "license": "MIT",
    "authors": {
        "Juan Uribe": "[email protected]"
    },
    "source": {
        "git": "https://github.com/juanuribeo13/UIScrollView-Keyboard.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "UIScrollView-Keyboard": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This