我需要为横向和波特率设计不同的布局我知道如何使用 .xib 文件进行设计,但不知道如何使用情节提要设计不同的布局.
I need to design different layouts for landscape and potrate I know how to design using .xib file but don't get how design different layout using storyboard.
我想要类似 这个 但使用情节提要.
I want something like This but using storyboard.
请帮帮我.
您需要为每个屏幕布局创建不同的视图或不同的约束.
You will need to create different views or different constraints for each screen layout.
您可以在此处选择当前的屏幕布局:
You can select the current screen layout here:
您可以在此处(查看底部)确定该屏幕布局中是否会出现(安装)视图:
And you can determine whether a view is going to be present (installed) in that screen layout here (look at the bottom):
玩了一会儿应该就清楚了.:)
It should be clear after you play a bit with it. :)
这篇关于纵向和横向故事板的替代 iOS 布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!