Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.07k stars 1.37k forks source link

Plus机型横屏模式下启动,方向异常(Bug) #1257

Closed dwjgkp closed 2 years ago

dwjgkp commented 3 years ago

Bug 表现 iPhone7/8Plus机型,在横屏模式下,启动一个竖屏应用,启动后会造成界面方向异常。

如何重现

  1. 导入QMUI
  2. Device Orientation 只选择Portrait
  3. 直接在Plus机型的横屏模式下启动

问题代码 QMUIHelper类的 + (BOOL)isNotchedScreen方法, 在启动时设置新的rootViewController UIViewController *viewController = [UIViewController new]; window.rootViewController = viewController; 会造成启动方向异常的问题

其他信息

jiasongs commented 3 years ago

same issue https://github.com/Tencent/QMUI_iOS/issues/1263

MoLice commented 2 years ago

由 #1263 跟进

MoLice commented 2 years ago

已发布 4.3.0 修复该问题。