I've accomplished something similar, though I didn't bother to move it into it's own function: CATransition *transition = CATransition animation; transition. Duration = 0.5; transition. Type = kCATransitionMoveIn; transition.
Subtype = kCATransitionFromBottom; self. NavigationController.view. Layer addAnimation:transition forKey:nil; self.
NavigationController popViewControllerAnimated:NO You could abstract it out. Using your code, it would look like: (void)popViewControllerMoveInFromTop { CATransaction begin; CATransition *transition; transition = CATransition animation; transition. Type = kCATransitionMoveIn; transition.
Subtype = kCATransitionFromTop; transition. Duration = 0.7; CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions; self.view. Layer addAnimation:transition forKey:nil; self popViewControllerAnimated:NO; CATransaction commit; } You can also create a custom transition for pop using UIView's animations.
Here you are applying an animation to the view that's about to disappear and then popping it from the view stack: UIView beginAnimations:nil context:NULL; UIView setAnimationDuration:0.75; UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self. NavigationController. View cache:NO; self.
NavigationController popViewControllerAnimated:NO; UIView commitAnimations.
I've accomplished something similar, though I didn't bother to move it into it's own function: CATransition *transition = CATransition animation; transition. Duration = 0.5; transition. Type = kCATransitionMoveIn; transition.
Subtype = kCATransitionFromBottom; self. NavigationController.view. Layer addAnimation:transition forKey:nil; self.
NavigationController popViewControllerAnimated:NO You could abstract it out. Using your code, it would look like: - (void)popViewControllerMoveInFromTop { CATransaction begin; CATransition *transition; transition = CATransition animation; transition. Type = kCATransitionMoveIn; transition.
Subtype = kCATransitionFromTop; transition. Duration = 0.7; CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions; self.view. Layer addAnimation:transition forKey:nil; self popViewControllerAnimated:NO; CATransaction commit; } You can also create a custom transition for pop using UIView's animations.
Here you are applying an animation to the view that's about to disappear and then popping it from the view stack: UIView beginAnimations:nil context:NULL; UIView setAnimationDuration:0.75; UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self. NavigationController. View cache:NO; self.
NavigationController popViewControllerAnimated:NO; UIView commitAnimations.
I am trying to create a category for UINavigationController so I can put together a few custom animations. I came across this question and it got me started. I don't understand which view/layer is being accessed via the subview call.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.