/TunViewControllerTransition

a category to transition animation

Primary LanguageObjective-CMIT LicenseMIT

TunViewControllerTransition

a category to transition animation

swift版本

image

Installation

TunViewControllerTransition is available on CocoaPods. Just add the following to your project Podfile:

pod 'TunViewControllerTransition', '~> 0.0.4'

Usage

image

FromVC

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    self.navigationController.delegate = self;
}

 [self animateTransitionFromView:fromView toView:@"toViewKeyPath"];

ToVC

 [self animateInverseTransition];