如何在 iPad 上显示与 iPhone 相同的视图而不是拆分视图? [英] How to show same view as iPhone on iPad instead of Split view?
本文介绍了如何在 iPad 上显示与 iPhone 相同的视图而不是拆分视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望 iPad 上的视图与 iPhone 上的视图相同.
I want the views to look the same on iPad as they do on iPhone.
目前看起来是这样的:
推荐答案
没有任何代码很难说,但我打赌你需要将 .navigationViewStyle(StackNavigationViewStyle())
添加到你的 NavigationView 中在 iPad 上以拆分视图模式获取它:
Hard to say without any code, but I bet you need to add .navigationViewStyle(StackNavigationViewStyle())
to your NavigationView to not get it in split view mode on the iPad:
NavigationView {
View1()
}.navigationViewStyle(StackNavigationViewStyle())
这篇关于如何在 iPad 上显示与 iPhone 相同的视图而不是拆分视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文