2016-04-21 61 views
2

我自定義UIPresentationController以模擬演示文稿,如iOS本機.OverCurrentContext.CurrentContextiOS上的自定義UIPresentationController

我覺得不管是什麼我重寫,該presentingViewController始終是一個UIWindow的rootViewController,沒有任何人知道如何使它的sourceViewController(一援引presentViewController:animated:completion :)喜歡的.CurrentContext呈現樣式的行爲?

而且還有一個奇怪的行爲,shouldPresentInFullscreen方法沒有區別,如果它返回true或false。

回答

0

嘗試在您的展示視圖控制器上設置definesPresentationContext = YES