سؤال

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