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 布局
基础教程推荐
- NSString intValue 不能用于检索电话号码 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
