Created
February 1, 2012 00:34
-
-
Save 0x8badf00d/1714208 to your computer and use it in GitHub Desktop.
Flip Animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Written by Abizern | |
[UIView transitionWithView:self.view.superview duration:0.35f options:UIViewAnimationOptionTransitionFlipFromRight animations:^{ | |
UIView *containerView = self.view.superview; | |
AnalogueView *analogueView = timeViewController.analogueView; | |
[self.view removeFromSuperview]; | |
[containerView addSubview:analogueView]; | |
}completion:NULL]; | |
[UIView transitionWithView:containerView duration:0.35f options:UIViewAnimationOptionTransitionFlipFromLeft animations:^{ | |
UIView *infoView = self.infoViewController.view; | |
self.infoViewController.timeViewController = self; | |
[self.analogueView removeFromSuperview]; | |
[containerView addSubview:infoView]; | |
} completion:NULL]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment