This project is created as an example to show how to animate a view and complete a fade transition using iOS7's UIViewControllerTransitioningDelegate || UIViewControllerAnimatedTransitioning protocols.
1.0 - Initial Commit
Circle Views are created by creating equal height/width UIViews with the layer.cornerRadius set at 1/2 the width. The views are added with AutoLayout constraints. When a circle view is tapped the following occurs:
- Animate circle to 0.5 transform
- Animate circle to 10 transform
- Begin transition to fade in the next UIViewController
For the reverse the following occurs:
- Fade original (first) UIViewController back in
- Within viewWillAppear we begin to animate the circle back to its standard form
- Within viewDidAppear we pickup this view and continue the animation to 0.5 transform
- Animate circle to 1.5 transform
- Animate back to standard form
There are two starting UIViewController examples. One has only one circle and the other has multiple (three circles).
By default the multi circle view is loaded. Comment out the three lines in App Delegate - didFinishLaunchingWithOptions
for the single circle view approach.
UIStoryboard *mainstoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UINavigationController *navVC = [[UINavigationController alloc] initWithRootViewController:[mainstoryboard instantiateViewControllerWithIdentifier:@"Multi"]];
self.window.rootViewController = navVC;
MIT - http://opensource.org/licenses/MIT
Please link back to me/this project if you use it in anyway.
Stuart Morris Github
@MorrisStuart
LinkedIn
If you have any recommended updates please notify me using any of the above methods.
If you find any issues please create an issue/pull request for an update.
Thanks