[英]how to show split view in landscape only in IPhone using swift
i have video player on the top and there is tableview below the video player. 我在顶部有视频播放器,在视频播放器下面有tableview。 video player has some custom control UI and below in the table view there are some cardview shows video list.
视频播放器具有一些自定义控件UI,并且在表格视图下面有一些cardview显示视频列表。 but when the video playback will end then in portrait its showing video view on top and bottom will show tableview.
但是当视频播放结束时,将以纵向显示,其在顶部和底部显示的视频视图将显示桌面视图。 in landscape i want to show two view.
在景观中,我想显示两个视图。 left side will show video end playback UI and right side will show the tableview .
左侧将显示视频结束播放UI,右侧将显示tableview。
If you are using Xcode 8.2 and swift3, in the Main.storyboard
you have the option where you can see your application with the different Orientation and Device. 如果您使用的是Xcode 8.2和swift3,则在
Main.storyboard
中,可以选择使用不同的Orientation和Device查看应用程序。 You can adapt the view with the orientation that you choose. 您可以按照您选择的方向调整视图。 Like below:
如下所示:
Here a great tutorial about Auto Layout with Xcode8. 这是有关使用Xcode8自动布局的出色教程。
Hope that helps, 希望能有所帮助,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.