juce_ios_UIViewComponentPeer.mm
//==============================================================================
void Desktop::setKioskComponent (Component* kioskModeComponent, bool enableOrDisable, bool allowMenusAndBars)
{
// TODO
}
I’m sure this isn’t up to Jules’ normal code quality, but it does the trick, at least for my purposes: (you can also use UIStatusBarAnimationFade to fade out the status bar but I think slide is more appropriate when the component will already be drawn underneath).
[code]void Desktop::setKioskComponent (Component* kioskModeComponent, bool enableOrDisable, bool allowMenusAndBars)
{
[[UIApplication sharedApplication] setStatusBarHidden:enableOrDisable?YES:NO withAnimation:UIStatusBarAnimationSlide];
if(enableOrDisable)
kioskModeComponent->setBounds (Desktop::getInstance().getMainMonitorArea (false));
} [/code]
