If you're using CocoaPods, simply add pod 'ZTModalShow' to your Podfile.
Just add the UIViewController+ModalShow.h+ UIViewController+ModalShow.m file to your project. If you don't have ARC enabled, you will need to set a -fobjc-arc compiler flag on the .m source files.
self.customView = [UIView new];
self.customView.backgroundColor = [UIColor redColor];self.customView.frame = CGRectMake(0, 0, 200, 200);ModalShowOption *option = [ModalShowOption defaultOption];
option.showCover = YES;
option.animationType = ZTAnimationOptionEaseIn;
option.animationDurationTime = 0.2f;
option.showOption = ZTShowOptionDownToUp;
[self zt_showView:self.customView WithConfiguration:option];- ARC
- iOS 8.0 or later
- Xcode 7
ZTModalShow is available under the MIT license. See the LICENSE file for more info.
