Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sylphghost/SGControllerTransition

Repository files navigation

SGControllerTransition

language Support CocoPods License MIT

It is no longer difficult to animate the controller. Creating a transition animation requires only two steps. SGControllerTransition

Usage

1. Create the animation

 _showAnimation = [SGTransitionAnimation transitionAnimationWithAnimationDurationl:animationTime TransitioningBlock:
^(UIViewController *fromViewController, 
UIViewController *toViewController, 
UIView *containerView, 
SGAnimationCompleteTransitionBlock completeTransitionBlock) {
 //Your animation code.
 
 //When your animation is complete, 
 //be sure to call the completeTransitionBlock.
}];

2. Create the transition

Transition includes four types of transitions: Push, Pop, Present, and Dismiss. According to the specific rotation movement, select the corresponding transition type.

 _transition = [SGControllerTransition 
 viewControllerPresentTransitonWithToViewController:
 toViewController 
 transitionAnimation:
 _showAnimation];

Install

CocoaPods

  1. Add pod 'SGControllerTransition','~> 1.0.0' to your Podfile.
  2. Run pod install or pod update.
  3. Import <SGControllerTransition/SGControllerTransition.h>.

License

SGControllerTransition is provided under the MIT license. See LICENSE file for details.

About

It is no longer difficult to animate the controller.

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /