QMUIDemo_iOS
QMUIDemo_iOS copied to clipboard
设置supportedOrientationMask = .landscapeLeft在push到下一个页面时候,会先执行push动画,然后再旋转
运行环境
iOS 设备:模拟器
系统版本:iOS 18.2
- [x] Xcode 版本:
16.2 - [x] 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)