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

设置supportedOrientationMask = .landscapeLeft在push到下一个页面时候,会先执行push动画,然后再旋转 #88

Open
2 tasks done
xiaoyao20084321 opened this issue Jan 7, 2025 · 0 comments

Comments

@xiaoyao20084321
Copy link

xiaoyao20084321 commented Jan 7, 2025

运行环境

iOS 设备:模拟器
系统版本:iOS 18.2

  • Xcode 版本:16.2
  • QMUI iOS 版本:4.8.0

具体问题描述

我的TCGCreateRoomVC是继承与QMUICommonViewController的,设置supportedOrientationMask后, push进去后,会出现先出现push动画,然后才执行旋转动画,而不是跟demo里面一样,push和旋转是同步进行的
let createRoomVC = TCGCreateRoomVC(isHiddenNavBar: true)
createRoomVC.supportedOrientationMask = .landscapeLeft
self?.navigationController?.pushViewController(createRoomVC, animated: true)

问题截图

@xiaoyao20084321 xiaoyao20084321 changed the title 设置supportedOrientationMask = .landscapeLeft横屏无效 设置supportedOrientationMask = .landscapeLeft在push到下一个页面时候,会先执行push动画,然后再旋转 Jan 7, 2025
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

1 participant