iOS - No Title Bar (but keep on OSX) - also resolution


When I run my app in iOS, it shows a title bar, with buttons, and is resizable... I want that when it runs in OSX, but how do I kill these in iOS?

I pretty much have the code found in the JUCE Demo


        Desktop::getInstance().setOrientationsEnabled(Desktop::rotatedClockwise | Desktop::rotatedAntiClockwise);

        theMainWindow.setVisible (true);

        theMainWindow.setFullScreen (true);

Setting the title bar height to 0 is somewhat helpful, but its still not using all the space available on the screen. I suspect the DocumentWindow is still hogging some room... Should I not be using that for iOS?


Try looking at the new juce demo, it's a better example for doing this.