2016-04-21 24 views
2

我自定义UIPresentationController以模拟演示文稿,如iOS本机.OverCurrentContext.CurrentContextiOS上的自定义UIPresentationController

我觉得不管是什么我重写,该presentingViewController始终是一个UIWindow的rootViewController,没有任何人知道如何使它的sourceViewController(一援引presentViewController:animated:completion :)喜欢的.CurrentContext呈现样式的行为?

而且还有一个奇怪的行为,shouldPresentInFullscreen方法没有区别,如果它返回true或false。

回答

0

尝试在您的展示视图控制器上设置definesPresentationContext = YES