在 UIPopoverController 中使用 UIModalTransitionStyleFlipHorizontal
我试图在 UIPopOver 中呈现一个模式视图控制器。
我已经设置:[theViewController setModalPresentationStyle: UIModalPresentationCurrentContext]
;以便允许在弹出窗口内进行过渡,而不是在弹出窗口之外进行过渡。
这里的问题是我收到错误消息:
“应用程序尝试在弹出窗口内呈现 UIModalTransitionStyleCoverVertical 以外的过渡样式
”,
如果我设置:[theViewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal]
。
当我以模态方式呈现视图控制器而不是默认值时,我希望在弹出窗口中具有“水平翻转”类型的动画。我怎样才能实现这个目标?
谢谢 :)
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论