TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2016 |
Maintained by Bin Zhang.
Show a UIViewController in a popover with background blurred. Introduced in China Air Quality Index.
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.
podfile
:pod 'RWBlurPopover', '~> 3.0.0'
OR
.h
and .m
files from RWBlurPopover
into your project.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];
popover.tapBlurToDismiss = NO;
popover.throwingGestureEnabled = NO;
[contentViewController dismissViewControllerAnimated:YES completion:nil];
MIT License