简体   繁体   English

我们可以在iOS上创建情节提要吗?

[英]iOS can we create storyboard to landscape?

I am working on iPad project and I need to create a new storyboard or a new view controller for landscape mode so when the user change the device orientation the view controller change. 我正在iPad项目上工作,需要为横向模式创建新的情节提要板或新的视图控制器,因此当用户更改设备方向时,视图控制器也会更改。

Can someone tell me if it is possible and if yes how? 有人可以告诉我是否可行,如果可以,怎么办? if no, what we can do in this situation. 如果没有,在这种情况下我们可以做什么。

Thank you, 谢谢,

在IB中检查属性检查器,您可以在“模拟指标”下设置方向。

Of course, using size classes and constraints is a better way of going around this - and you can also use the preview that Xcode gives you: 当然,使用大小类约束是解决此问题的更好方法-您还可以使用Xcode为您提供的预览:

Preview -> Main.storyboard (Preview) 预览 -> Main.storyboard(预览)

  • which allows you to set a layout while seeing your results on different screen sizes and orientations automatically. 这样您就可以设置布局,同时在不同的屏幕尺寸和方向上自动查看结果。 (with assistant editor). (与助理编辑一起)。

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM