Ios 使用MMDrawerController切换rootViewController:过渡动画的怪异行为

Ios 使用MMDrawerController切换rootViewController:过渡动画的怪异行为,ios,animation,uiviewcontroller,uiviewanimation,uiviewanimationtransition,Ios,Animation,Uiviewcontroller,Uiviewanimation,Uiviewanimationtransition,在应用程序生命周期的某个时刻,我正在切换AppDelegate窗口的rootViewController。我试图通过以下方式设置此类开关的动画: [UIView transitionFromView:self.window.rootViewController.view toView:self.otherViewController.view duration:0.65f optio

在应用程序生命周期的某个时刻,我正在切换AppDelegate窗口的
rootViewController
。我试图通过以下方式设置此类开关的动画:

[UIView transitionFromView:self.window.rootViewController.view
                    toView:self.otherViewController.view
                  duration:0.65f
                   options:UIViewAnimationOptionTransitionFlipFromRight
                completion:^(BOOL finished){
                    self.window.rootViewController = self.otherViewController;
                }];
已执行动画,但第二个视图的高度似乎没有填充屏幕高度,动画完成后,它会突然适合整个屏幕高度。我希望我已经解释清楚了。。。会发生什么

谢谢


编辑:我注意到当
self.otherViewController.view
是一个。我测试了从一个
UINavigationController
转换到另一个
UINavigationController
的代码,没有显示任何奇怪的内容。。。有人经历过这种情况吗?

我们可能已经想出了一个解决方案: