It worked fine up to the iOS 14, but from the iOS 15, the rotation button will be displayed, and switching of that button does not work, so please help.
I'm building an iPhone app on my iPad and watching it. When screen transition is performed using addChildViewController in the app, the display of the rotation button at the bottom right of the screen does not switch even if the screen transitions from the screen that allows rotation to the screen that does not allow rotation. The rotation button keeps appearing. Or it remains hidden.
In "supportedInterfaceOrientations" of the screen that does not allow rotation, it is set to "portrait", and when you press the rotation button, it will switch to the horizontal screen once and then return to the vertical screen, so you can see that the setting is reflected.
However, I want to switch the display of the rotation button at the timing of addChildViewController.
func show (UIViewController, sender: Any?)
func showDetailViewController (UIViewController, sender: Any?)
func present (UIViewController, animated: Bool, completion: (()-> Void)?)
If you perform a screen transition with these methods or "segue", the display of the rotation button will switch immediately. Therefore, it is considered that the display of the rotation button is not switched in addChildViewController.
Is it a bug? In the app I'm making, it's functionally impossible to switch from addChildViewController to present or show. Is there a way to switch the display of the rotation button in addChildViewController as well?
↓rotation buttan
note
・Confirmed with Xcode 13 beta 4 and iPad (OS 15) (simulator & iPhone).
・From iPad OS 15, we recognize that the screen remains vertical even if the terminal is rotated (new specifications).