I have a question on how to detect the device orientation on iOS. I don\'t need to receive change notifications, just the current orientation itself. This seems to be a rath
UIViewController has an interfaceOrientation property that you can access to find out the current orientation of a view controller.
UIViewController
interfaceOrientation
As for your example, that should work. When you say it isn't working, what do you mean? What results does it give you versus what you expected?