When I use UITabbarController, I'd like to display only the portrait screen without rotating the screen.
When I am not using UITabBarController, I do not rotate the screen and it is in landscape view.
Therefore, I set the following for ViewController not using UITabBarController.
override var shouldAutorotate: Bool {
get {
return true
}
}
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
get {
return .landscapeRight
}
}
In the specifications of the application, we make the following settings.
I am using UITabbarController in storyboard 1. enter image description here
I am not using UITabbarController in storyboard 2. enter image description here
I'd like to create an application to move from storyboard 1 to storyboard 2.
I do not know how to display the screen vertically only on the ViewController that I use UITabBarController.