If I’m in a UIViewController class that is currently being presented as a popover, how do I detect what orientation I’m in?
I’ve tried the usual self.interfaceOrientation but this always returns Portrait even when the device is in landscape. What’s the correct way to do this?
You could use
or you could work with notifications after an orientation change