How can I find out the real iOS-Device orientation (not UIView orientation) even on a locked UIView?

有帮助吗?

解决方案

It might help you.

UIDeviceOrientation currentDeviceOrientation = [[UIDevice currentDevice] orientation];
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top