在 UIPopoverController 中使用 UIModalTransitionStyleFlipHorizo​​ntal

发布于 2024-12-23 06:25:03 字数 473 浏览 6 评论 0原文

我试图在 UIPopOver 中呈现一个模式视图控制器。
我已经设置:
[theViewController setModalPresentationStyle: UIModalPresentationCurrentContext];以便允许在弹出窗口内进行过渡,而不是在弹出窗口之外进行过渡。

这里的问题是我收到错误消息:
应用程序尝试在弹出窗口内呈现 UIModalTransitionStyleCoverVertical 以外的过渡样式”,
如果我设置:
[theViewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizo​​ntal]

当我以模态方式呈现视图控制器而不是默认值时,我希望在弹出窗口中具有“水平翻转”类型的动画。我怎样才能实现这个目标?

谢谢 :)

I am trying to present a modal view controller inside a UIPopOver.
I have set :
[theViewController setModalPresentationStyle: UIModalPresentationCurrentContext]; so as to allow the transition within the pop over and not outside the pop over.

The problem here is that I am getting error message:
"Application tried to present inside popover with transition style other than UIModalTransitionStyleCoverVertical",
if I am setting :
[theViewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal].

I want to have the 'flip horizontal' type animation within the popover when I modally present the view controller instead of the default. How can I achieve this?

Thanks :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文