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 | Apr 2017 |
Maintained by Tamás Tímár.
TTZoomTransition is a custom modal view controller transition which displays the presented view controller by zoom animation.
You can use TTZoomTransition via CocoaPods. Add the following line to your Podfile:
pod TTZoomTransitionSet modalPresentationStyle property of your modal view controller to UIModalPresentationCustom. Also set the transitioningDelegate property.
ModalViewController* modalVC = [[ModalViewController alloc] init];
modalVC.modalPresentationStyle = UIModalPresentationCustom;
modalVC.transitioningDelegate = self;
[self presentViewController:modalVC animated:YES completion:nil];In your transitioning delegate implement the following methods of UIViewControllerTransitioningDelegate:
- (id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source
{
TTZoomTranstition* zoomTransition = [[TTZoomTranstition alloc] init];
return zoomTransition;
}
- (id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
TTZoomTranstition* zoomTransition = [[TTZoomTranstition alloc] init];
zoomTransition.presenting = NO;
return zoomTransition;
}pod try TTZoomTransitionIf you don't have CocoaPods on your machine, get it: [sudo] gem install cocoapods.
Tamás Tímár
TTZoomTransition is available under the MIT license. See the LICENSE file for more info.
Images in example are from Pixabay.