首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iOS上的自定义UIPresentationController

iOS上的自定义UIPresentationController
EN

Stack Overflow用户
提问于 2016-04-21 11:15:43
回答 1查看 395关注 0票数 3

我正在定制一个UIPresentationController来模拟iOS原生.OverCurrentContext.CurrentContext的演示文稿。

我发现无论我覆盖什么,presentingViewController总是UIWindow的rootViewController,有谁知道如何使它成为sourceViewController(调用presentViewController:animated:completion:),就像.CurrentContext表示风格的行为一样?

还有一个奇怪的行为,shouldPresentInFullscreen方法返回true或false都没有区别。

EN

回答 1

Stack Overflow用户

发布于 2016-06-23 23:32:30

尝试在演示视图控制器上设置definesPresentationContext = YES

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36758941

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档