iOS supported device orientations


#1

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.


#2

Have a look at Desktop::setOrientationsEnabled()


#3

Aha, brilliant! Much thanks.