I have a view controller that has the following hierarchy:
UIViewController
|
|-view
|-presentView (UIView)
|-stagedView (UIView)
|-UIToolbar
I am using the transitionFromView:toView:duration:options:completion:
method to animate a page curl up to swap between the presentView
and the stagedView
. The present and staged view only cover most of the screen and there is a UIToolbar at the bottom. When I use the UIViewAnimationOptionTransitionCurlUp
transition, it is animating the whole root view (toolbar included), not just the two views involved.
[UIView transitionFromView:self.presentView
toView:self.stagedView
duration:0.5f
options:UIViewAnimationOptionTransitionCurlUp
completion:^ (BOOL finished) {
if (finished) {
// cleanup code
}}];