objective c - Unset a UIView's animation transition -
I use the following code to animate a flip transition on a view:
Code> [UIView start estimates: zero reference: NULL]; [UIView Set Animation Duration: 1.0]; [UIView Set Animation Transition: UIViewAnimationTransitionFlipFromRight forView: self.view Cache: Yes]; [Self.view addSubview: anotherViewController.view]; [UIView commitAnimations];However, when I switch this view (self.view in the top code snippet above) inside a UIPageViewController, the viewer flips instead of left or right to slide.
How can I "unset" this animation transition when the scene is flipped? After the transition was completed, I tried to call [self.view.layer removalAllAnimations] but it had no effect.
I have determined that the function displaying the animation was being called by notification callback, When the current page of the page view was changed. Hopefully someone else will benefit from this reply in the hope that the end of the element block (any code between [UIView startAnimation] and [UIView commitAnimation] to finish the animation settings.
Comments
Post a Comment