Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
即使在锁定的 UIView 上,我如何才能找出真正的 iOS 设备方向(不是 UIView 方向)?
它可能会帮助你。
UIDeviceOrientation currentDeviceOrientation = [[UIDevice currentDevice] orientation];