ios:16 UIViewController's method of setNeedsUpdateOfSupportedInterfaceOrientations does not exits

in ios16, when the device rotate from landscapeLeft to the landscapeRight,or from landscapeRight to landscapeLeft,the topmost UIViewController‘s method of supportedInterfaceOrientations does not be called,which means the UI does not change when the device upsideDown. To solve this problem,I want to call the UIViewController's method of setNeedsUpdateOfSupportedInterfaceOrientations to change the UIWindow's orientation when the device upsideDown, but the method does not exist.

setNeedsUpdateOfSupportedInterfaceOrientations is a method of UIViewController it seems not UIWindow.

Did you solve this problem??

ios:16 UIViewController's method of setNeedsUpdateOfSupportedInterfaceOrientations does not exits
 
 
Q