I am trying to get the new IOS 5 Container viewControllers working properly but I am having an issue animating between them.
I have a "rootViewController". In this controller, I have added 2 child view controllers. This functions almost like a splitViewController. On the left I have a VC that handles navigation, and on the right I have a VC that shows specific content.
I am trying to animate between the VC on the right, and a new VC which will replace it.
This is my code for the animation:
public void Animate(UIViewController toController) {
AddChildViewController(toController);
activeRightController.WillMoveToParentViewController(null);
toController.View.Frame = activeRightController.View.Frame;
Transition(activeRightController, toController, 1.0, UIViewAnimationOptions.TransitionCurlUp, () => {},
(finished) => {
activeRightController.RemoveFromParentViewController();
toController.DidMoveToParentViewController(this);
activeRightController = toController;
});
activeRightController = toController;
}
Almost everything works, it transitions to my new view using the CurlUp transition, however the transition itself goes across the WHOLE screen...not just the single view that I want to transition. Its "curling Up" the parent view, and not the child. It does however replace only the child view underneath it. I hope this makes sense.