Latest3.1.1
Homepagehttps://github.com/eternityz/RWBlurPopover
LicenseMIT
Platformsios 7.0, requires ARC
Authors

Show a UIViewController in a popover with background blurred. Introduced in China Air Quality Index.

RWBlurPopover

Demo Video

iOS 7.0+ is required. "Throwing away to dismiss" gesture is inspired by Tweetbot.

NOTE: Release 3.0.0 of RWBlurPopover is incompatible with previous releases.

Installation

  • Add a pod description into your podfile:

    pod 'RWBlurPopover', '~> 3.0.0'

    OR

  • Clone this repo, drop .h and .m files from RWBlurPopover into your project.

Useage

  • Include RWBlurPopover whenever you need it with #import <RWBlurPopover/RWBlurPopover.h>.

  • Present a UIViewController inside a popover with background blurred:
[RWBlurPopover showContentViewController:contentViewController insideViewController:presentingViewController];

OR:

RWBlurPopover *popover = [[RWBlurPopover alloc] initWithContentViewController:nav];
[popover showInViewController:self];
  • Disable dismissing by tapping on blur background view (default is enabled):

    popover.tapBlurToDismiss = NO;
  • Disable dismissing by "throwing" gesture (default is enabled):

    popover.throwingGestureEnabled = NO;
  • Dismiss the view controller presented by RWBlurPopover programmatically:
[contentViewController dismissViewControllerAnimated:YES completion:nil];

License

MIT License

Latest podspec

{
    "name": "RWBlurPopover",
    "version": "3.1.1",
    "summary": "Show a UIViewController in a popover with background blurred.",
    "description": "Show a UIViewController in a popover with background blurred. Based on iOS7 UIKit Dynamics and custom UIViewController transitions.",
    "homepage": "https://github.com/eternityz/RWBlurPopover",
    "license": "MIT",
    "authors": {
        "eternityz": "[email protected]"
    },
    "social_media_url": "http://twitter.com/eternity1st",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/eternityz/RWBlurPopover.git",
        "tag": "3.1.1"
    },
    "source_files": [
        "RWBlurPopover",
        "RWBlurPopover/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This