iOS supported device orientations

Some iOS apps are set up so that they can only be viewed in a predefined set of orientations, e.g. landscape left and landscape right, or portrait only, or everything but upside down, etc. Is it possible to make JUCE apps similarly only respond to a set of orientations?

If so, how do I set this up? I’ve tried setting the “Supported Interface Orientations” settings in the build targets “Summary” tab, but the program doesn’t seem to respond to this. I’m probably changing something in the wrong place.

Have a look at Desktop::setOrientationsEnabled()

Aha, brilliant! Much thanks.