0

I have an app with video streaming pages. And I need to use that pages as landscape. I am using this code for this

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
    return UIInterfaceOrientationMask.landscape
}

override var shouldAutorotate: Bool {
    return false
}

And I use UIInterfaceOrientationMask.portrait for the other pages.

This generally works fine. But sometimes when go to a video page that forgets to force it to landscape and videos cannot display as its supposed to be, because of the orientation problem.

What is the best way to force some pages to landscape?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
cvdogan
  • 166
  • 1
  • 1
  • 13

0 Answers0