Closed sfandy126 closed 1 year ago
1、ZFOrientationObserver.m 对象landscapeRotationManager初始化判断错误; 2、ZFLandscapeRotationManager_iOS16.m这个类中处理的逻辑不太对; 希望大佬更新下
兼容xcode13.4.1 运行iOS16 if (!_landscapeRotationManager) { if (@available(iOS 16.0, *)) { _landscapeRotationManager = [[ZFLandscapeRotationManager_iOS16 alloc] init]; } else { _landscapeRotationManager = [[ZFLandscapeRotationManager_iOS15 alloc] init]; } }
[UIApplication.sharedApplication.keyWindow.rootViewController setNeedsUpdateOfSupportedInterfaceOrientations];
[self.window.rootViewController setNeedsUpdateOfSupportedInterfaceOrientations];
[(id)UIApplication.sharedApplication.keyWindow.rootViewController setNeedsUpdateOfSupportedInterfaceOrientations];
[(id)self.window.rootViewController setNeedsUpdateOfSupportedInterfaceOrientations];
} }
1、ZFOrientationObserver.m 对象landscapeRotationManager初始化判断错误; 2、ZFLandscapeRotationManager_iOS16.m这个类中处理的逻辑不太对; 希望大佬更新下