Latest 0.1.6
Homepage https://github.com/DavydLiu/UIViewController-Dismissible
License MIT
Platforms ios 7.0, requires ARC
Authors

Version
License
Platform

Usage

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

To use this Pod, add and remove touchBehind gesture recognizer as follow:

#import "UIViewController+Dismissible.h"

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    // add gesture recognizer to UIWindow
    [self.view.window addGestureRecognizer:self.tapBehindGesture];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];

    // remove gesture recognizer from UIWindow
    [self.view.window removeGestureRecognizer:self.tapBehindGesture];
}

Requirements

ARC

Installation

UIViewController+Dismissible is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "UIViewController+Dismissible"

Author

Xingruo Liu, [email protected]

License

UIViewController+Dismissible is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "UIViewController+Dismissible",
    "version": "0.1.6",
    "summary": "Let any modally presented view to be able to be dismissed by touching outside of it.",
    "description": "                      Use it by including head file and adding n                      [self.view.window addGestureRecognizer:self.tapBehindGesture];n                      in viewDidAppear:n                      [self.view.window removeGestureRecognizer:self.tapBehindGesture];n                      in viewWillDisappear:n",
    "homepage": "https://github.com/DavydLiu/UIViewController-Dismissible",
    "license": "MIT",
    "authors": {
        "Xingruo Liu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DavydLiu/UIViewController-Dismissible.git",
        "tag": "0.1.6"
    },
    "social_media_url": "https://twitter.com/DavydLiu",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "UIViewController+Dismissible/"
}

Pin It on Pinterest

Share This