RWBlurPopover 3.1.1

RWBlurPopover 3.1.1

测试已测试
Lang语言 Obj-CObjective C
许可 MIT
发布最新发布2016年3月

Bin Zhang 维护。



在弹出视图中显示带有模糊背景的 UIViewController。在 中国空气质量指数 中引入。

演示视频

需要 iOS 7.0+。"扔掉以关闭"的手势灵感来源于 Tweetbot

注意:RWBlurPopover 的 3.0.0 版本与之前的版本不兼容。

安装

  • 将 Pod 描述添加到您的 podfile
pod 'RWBlurPopover', '~> 3.0.0'

或者

  • 克隆此仓库,将 RWBlurPopover 中的 .h.m 文件拖放到项目中。

使用方法

  • 通过使用 #import <RWBlurPopover/RWBlurPopover.h> 在需要时包含 RWBlurPopover。

  • 在弹出视图中显示带有模糊背景的 UIViewController

[RWBlurPopover showContentViewController:contentViewController insideViewController:presentingViewController];

或者

RWBlurPopover *popover = [[RWBlurPopover alloc] initWithContentViewController:nav];
[popover showInViewController:self];
  • 禁用通过点击模糊背景视图来关闭(默认启用)
popover.tapBlurToDismiss = NO;
  • 禁用通过“扔掉”手势来关闭(默认启用)
popover.throwingGestureEnabled = NO;
  • 通过代码方式关闭 RWBlurPopover 提供的视图控制器
[contentViewController dismissViewControllerAnimated:YES completion:nil];

许可

MIT 许可证