Rotation affects only once in iPad in Fast 3

I have 2 view controllers. There are many videos in the first view controller, and when the user clicks on the video, he goes to the second view controller.

When the user reaches the second viewing controller, the screen will automatically switch to landscape mode.


But the user rotates the device, and the video display will rotate to portrait and can no longer be set to landscape mode.

enter image description here

---------------------
I set some configuration in Project> General.
I would like to adjust the landscape no matter how the user rotates the device. Anyone help me?

enter image description here

0
source share
1 answer

Add the following functions to the video controller:

override var shouldAutorotate: Bool { return true } override var supportedInterfaceOrientations: UIInterfaceOrientationMask { return .landscape } 
0
source

All Articles