Alternative iOS layouts for portrait and landscape storyboard(纵向和横向故事板的替代 iOS 布局)
问题描述
我需要为横向和波特率设计不同的布局我知道如何使用 .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 布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:纵向和横向故事板的替代 iOS 布局


- GPS状态的广播接收器? 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- URL编码Swift iOS 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
- UITextView 内容插图 2022-01-01