Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dwjgkp opened this issue Jun 7, 2021 · 3 comments
Closed

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

dwjgkp opened this issue Jun 7, 2021 · 3 comments

Comments

@dwjgkp
Copy link

dwjgkp commented Jun 7, 2021

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

如何重现

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

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

其他信息

  • 设备: [例如模拟器、iPhone、iPad]
  • iOS 版本: [iOS 14.5]
  • QMUI 版本: [4.1.3]
@dwjgkp dwjgkp changed the title Plus机型横屏模式下启动,方向异常 Plus机型横屏模式下启动,方向异常(Bug) Jun 25, 2021
@CloudlessMoon
Copy link

same issue #1263

@MoLice
Copy link
Collaborator

MoLice commented Aug 30, 2021

#1263 跟进

@MoLice MoLice closed this as completed Aug 30, 2021
@MoLice
Copy link
Collaborator

MoLice commented Aug 31, 2021

已发布 4.3.0 修复该问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants