TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2018 |
Maintained by changsanjiang.
Modal自定义转场动画
- (void)clickedModalBtn {
ModalViewController *pvc = [ModalViewController new];
self.animator.modalViewController = pvc;
// /*!
// * custom your animation. If not set, the default mode will be used.
// */
// [self.animator presentedAnimation:^(id<UIViewControllerContextTransitioning> _Nonnull transitionContext) {
// // ...
// } dismissedAnimation:^(id<UIViewControllerContextTransitioning> _Nonnull transitionContext) {
// // ...
// }];
[self presentViewController:pvc animated:YES completion:nil];
}