Xcode Swift如何将UIViewController置于父UIView Controller下面(Xcode Swift how to place UIViewController benea

编程入门 行业动态 更新时间:2024-10-26 14:38:34
Xcode Swift如何将UIViewController置于父UIView Controller下面(Xcode Swift how to place UIViewController beneath parent UIView Controller)

我想发挥Facebook应用程序的类似效果。 所以我想创建导航滑出效果。

但是当我将带有菜单的UIViewController放在父UIViewController下面的内容时,我移动父视图,我的菜单不显示。 我能看到的一切都是黑屏。 但菜单框架位于正确的位置。

任何消化我该怎么办?

内容视图将是单独的UIViewControllers。

I would like to make similar effect that Facebook app has. So I would like to create navigation slide-out effect.

But when I place UIViewController with menu beneath parent UIViewController with content and then I move parent view aside my menu doesnt show up. Everything I can see is black screen. But menu frame is in the right position.

Any sugestion what should I do?

Content view will be separate UIViewControllers.

最满意答案

我和你的情况相同,最后我使用了一个受FaceBook和Wunderlist应用程序启发的自定义类,并且很容易添加到项目中: https : //github.com/John-Lluch/SWRevealViewController

I was in the same situation than you and finally I used a custom class which is inspired on FaceBook and Wunderlist apps and is really simple to add into the project: https://github.com/John-Lluch/SWRevealViewController

更多推荐

本文发布于:2023-08-06 23:12:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1457471.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   UIViewController   Xcode   Swift   UIView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!