Hello! Please, help to hide white bar from OpenFL project.
I crafted new OpenFL project for iOS target. Main class:
class Main extends Sprite {
**var inited:Bool;**
/* ENTRY POINT */
**function resize(e)**
**{**
**if (!inited)**
**init();**
**else**
**{**
**}**
**}**
**function init()**
**{**
**if (inited) return;**
**inited = true;**
**var sprite = new Sprite();**
**sprite.graphics.beginFill(0xff0000);**
**sprite.graphics.drawCircle(0, 0, 300);**
**sprite.graphics.endFill();**
**addChild(sprite);**
**}**
**/* SETUP */**
**public function new()**
**{**
**super();**
**addEventListener(Event.ADDED_TO_STAGE, added);**
**}**
**function added(e)**
**{**
**removeEventListener(Event.ADDED_TO_STAGE, added);**
**stage.addEventListener(Event.RESIZE, resize);**
**#if ios**
**haxe.Timer.delay(init, 100); // iOS 6**
**#else**
**init();**
**#end**
**}**
**public static function main()**
**{**
**// static entry point**
**Lib.current.stage.align = openfl.display.StageAlign.TOP_LEFT;**
**Lib.current.stage.scaleMode = openfl.display.StageScaleMode.NO_SCALE;**
**Lib.current.addChild(new Main());**
**//**
**}**
}
In info.plist I added:
View controller-based status bar appearance=false;
Status bar is initially hidden=yes;
But it’s not helpful.
But on launch on mobile device (iPhone 5 (iOS 8.4)) not hide white status bar. If I rotate my iPhone, this bar is hide.
Screenshoots on iOS simulator (before and after rotation):
before rotation:
after rotation:
Info.plist screen:
Thanks.