CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Philippe Converset.
ASDepthModal is mostly inspired by a nice CSS work from http://lab.hakim.se/avgrund/.
It gives a sense of depth between the current fullscreen view which is sent backward with a blur effect and a modal popup view which appears in front.
Works on iOS 5 and 6.
The blur effect is a code borrowed from https://github.com/rnystrom/RNBlurModalView.
Download the whole project and run it under Xcode. You can choose either iPhone or iPad destination. It supports all orientations change.
Just copy ASDepthModalViewController.h, ASDepthModalViewController.m, UIImage+Blur.h and UIImage+Blur.m in your project and #import "ASDepthModalViewController.h" where you need it.
Once you have your popup view, here is how you would present it
[ASDepthModalViewController presentView:yourPopupView];The popup view is automatically closed as soon as you tap outside of it.
If you need to close the popup view by code (you usually have a "close" button for this purpose)
[ASDepthModalViewController dismiss];You can configure the background color as well and different kind of options:
[ASDepthModalViewController presentView:yourPopupView
backgroundColor:color
options:options
completionHandler:handler];Three styles are available : no effect, grow effect or shrink effect.
This class requires ARC.