altyus / RWBlurPopover

Show a UIViewController in a popover with background blurred.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RWBlurPopover

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

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];
  • Dismiss the view controller presented by RWBlurPopover:
[contentViewController dismissViewControllerAnimated:YES completion:nil];

License

MIT License

About

Show a UIViewController in a popover with background blurred.

License:MIT License


Languages

Language:Objective-C 96.6%Language:Ruby 3.4%