ViewControllerInteractiveTransitioning Bug

时间:2014-12-18 12:10:01

标签: ios objective-c uimodalpresentationstyle

我正在展示一个view {modalPresentationStyle设置为UIModalPresentationCustom并使用我的自定义transitioningDelegate的viewController。我首先成功测试了非交互式过渡,然后我想更深入地添加一个interactiveTransition,但仅限于解雇。

[VIDEO] iOS7 custom transitioningDelegate demo

演示视频不言而喻,正如您在iOS7中看到触摸事件触发interactiveTransitioning并取消解雇时,如果我尝试旋转,presentViewController会出现意外行为并全屏显示,否则旋转工作应该如此。

我注意到在旋转之前,如果interactiveTransitioning被触发,则在mainViewController - willRotateToInterfaceOrientation:duration:self.presentedViewControllernil,这显然是一个错误。

我该如何解决这个问题?

注意:在iOS8中,ALL完美运行,而self.presentedViewController从不会被填空!

0 个答案:

没有答案