CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Determine whether UIViewController is presented as modal.
UIViewController-Modal works on iOS 6.0+ version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
You will need LLVM 3.0 or later in order to build UIViewController-Modal.
Alternatively you can directly add source files to your project.
UIViewController-Modal folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.UIViewController+Modal.h or add this to your project prefix header *-Prefix.pch.#import "UIViewController+Modal.h"
...
@implementation UIViewController
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
if ([self isModal]) {
// modal
} else {
// not modal
}
}
@endThis code is distributed under the terms and conditions of the MIT license.
A brief summary of each UIViewController-Modal release can be found on the wiki.