How can I programmatically check whether the device orientation is locked in iOS? I see nothing in UIDevice. I know that this is supposed to be transparent to the app. But I
I don't think you can find out if the orientation is locked. I have looked for that some time ago and found nothing. What you can do is ignoring the orientation and just offer landscape in your view controller... then it will be shown in landscape no matter what.
I think this is what youtube is doing as well.