Domanda

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

È stato utile?

Soluzione

It might help you.

UIDeviceOrientation currentDeviceOrientation = [[UIDevice currentDevice] orientation];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top