try to fix: layoutTool unable to lock screen orientation in some conditions

This commit is contained in:
TrueZhuangjia
2025-02-23 10:49:09 +08:00
parent ecda390dc0
commit 06e80823b8
3 changed files with 26 additions and 2 deletions
@@ -733,8 +733,7 @@ const int FrontViewPositionNone = 0xff;
else return UIInterfaceOrientationMaskPortrait|UIInterfaceOrientationMaskPortraitUpsideDown;
}
// tested on iOS17. this method does not call back on iOS14, runtime orientation limitation not working for iOS14. Probably depends on iOS16 or higher.
// tested on iOS17.
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
// Return the supported interface orientations acoordingly
if(self.mainFrameIsInHostView){