I am trying to animate between portrait and landscape orientations by hooking the various autorotation methods in UIViewController
. Due to some subtleties of my view hierarchy, I'd like to set the frame of a child UIScrollView
in the first half the animation and then scroll into position during the second half. This requires knowledge of the final, rotated frame of my view from within willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
The system must know this frame in order to perform the rotation animation, but is it accessible to UIViewController
subclasses? If not, are my only options to hardcode the rotated frame or perform all layout in didRotateFromInterfaceOrientation...
?
Thank you.