ModalView 与 SplitView 相比,带有过渡

发布于 2025-01-04 14:42:35 字数 354 浏览 4 评论 0原文

我的应用程序应该显示登录模式视图,并且经过身份验证后,在 SplitView 上重定向。

现在,我正在使用更改应用程序委托中的 rootView 的方法。因此,在 loginController 中,我这样做:

[[[[UIAppDelegate window ] subviews] objectAtIndex:0] removeFromSuperview];

然后,我加载 splitViewController 并将其放置在 rootViewController 属性中。

它正在发挥作用。但我想在两种观点之间进行转换,但我完全不知道如何实现这一点。

有什么线索吗? 谢谢

My app should display a login modal view, and once authentified, redirect on a SplitView.

For now, i'm using the method that change the rootView in the app delegate. So, in the loginController, i do this :

[[[[UIAppDelegate window ] subviews] objectAtIndex:0] removeFromSuperview];

And after that, i load my splitViewController and place it in the rootViewController property.

It's working. But i would like to make a transition between the two views, and i've absolutely no idea how to make this happen.

Any clue ?
Thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦与时光遇 2025-01-11 14:42:35

看到这个问题 在 UISplitViewController 和其他视图之间切换的最佳方式控制器?

看来您应该将登录视图显示为分割视图上的模式视图

see this question Best way to switch between UISplitViewController and other view controllers?

It seems that you should show login view as a modal view over split view

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文