Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1013] ios fullscreen=true does not hide status bar

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2014-12-02T00:34:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsios
ReporterMichael Stelly
AssigneeShuo Liang
Created2014-11-29T15:58:18.000+0000
Updated2016-03-08T07:37:20.000+0000

Description

I've tried -- unsuccessfully -- multiple variations of the same operation to hide the status bar on ios 7+. In tiapp.xml true In TSS file fullscreen:true and in the JS file (OS_IOS) && $.window.setFullscreen(true); None of these methods work. The status bar is never hidden. I believe that functionality is bugged.

Comments

  1. Shuo Liang 2014-12-01

    Hi, Please try the following test case, it works for my IOS device and simulators. (both IOS 7.1 and 8)
       <Alloy>
       	<Window id="index">
       		<Label text="test" />
       	</Window>
       </Alloy>
       
       "#index": {
       	backgroundColor:"white",
       	fullscreen: true
       },
       "Label": {
       	width: Ti.UI.SIZE,
       	height: Ti.UI.SIZE,
       	color: "#000"
       } 
       
       $.index.open();
       
  2. Shuo Liang 2014-12-01

    or this test case also works.
       <Alloy>
       	<Window id="index">
       		<Label text="test" />
       	</Window>
       </Alloy>
       
       "#index": {
       	backgroundColor:"white",
       },
       "Label": {
       	width: Ti.UI.SIZE,
       	height: Ti.UI.SIZE,
       	color: "#000"
       } 
       
       $.index.fullscreen() = true;
       $.index.open();
       
  3. Michael Stelly 2014-12-01

    Your test case, as written, throws an error.
    $.index.fullscreen() = true;
    should be written as
    $.index.fullscreen = true;
    For my application, the above solution did not work. I finally got it working by placing
    <Window id='window' fullscreen='true'>
    in the XML.

JSON Source