Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18578] iOS: When a popover shows, the iOS status bar is automatically displayed

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionNot Our Bug
Resolution Date2015-02-26T16:57:55.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sn/a
ComponentsiOS
Labelsios, popover, statusbar
ReporterBen S
AssigneeVishal Duggal
Created2015-02-13T14:23:23.000+0000
Updated2017-03-28T22:58:27.000+0000

Description

With the current TI SDK and iOS 8.1, whenever I show a popover in my iPad application, the iOS navigation bar is displayed automatically (the iPad wifi symbol, current time and battery symbol on top). As soon as the popover is closed, the ios nav bar is hidden again. How can I prevent the iOS navigation bar from appearing?

Attachments

FileDateSize
app.js2015-02-16T02:34:26.000+0000625
iOS Simulator Screen Shot 16 Feb 2015 03.33.06.png2015-02-16T02:34:26.000+000049543
iOS Simulator Screen Shot 16 Feb 2015 03.33.11.png2015-02-16T02:34:26.000+000058635

Comments

  1. Ben S 2015-02-13

    Of course I've set "fullscreen:true" for my main application window, but this issue seems to be only related to the iOS popover UI element.
  2. Shuo Liang 2015-02-16

    Please provide a test case to reproduce your problem. That will be really helpful to address your issue. Thanks. Here is the [Guide](http://docs.appcelerator.com/titanium/3.0/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-CreatingaTestCase) for test case.
  3. Ben S 2015-02-16

    Hi, I've added a simple app.js demonstrating the problem directly. You can also see the problem on the 2 screenshots I uploaded. Screenshot 1: before opening the popover Screenshot 2: ios status bar appearing as soon as the popover appears
  4. Shuo Liang 2015-02-16

    Do you mean when you open the popover, the iOS status bar in the top shows up?
  5. Ben S 2015-02-16

    Yes, correctly. That is what's happening right now - but I don't want this to happen. In my application I never want the ios status bar to appear, no matter what UI element I open.
  6. Shuo Liang 2015-02-16

    I see. I will forward this ticket to engineer team to see if there is something they can do.
  7. Vishal Duggal 2015-02-26

    Use a window proxy for the contentView and set fullscreen to true for that proxy as well
       var win = Ti.UI.createWindow({backgroundColor:"white", fullscreen:true});
       
       var content_view = Ti.UI.createView({
           top:0,
           height:Ti.UI.SIZE,
           width:Ti.UI.SIZE,
           left:0
       });
       
       var button = Ti.UI.createButton({
           left:200,
           top:400,
           width:100,
           height:50,
           title:"Click"
       });
       button.addEventListener("click", function(e) {
           var popover = Ti.UI.iPad.createPopover();
           var popover_content_view = Ti.UI.createWindow({backgroundColor:"blue", width:200, height:200,fullscreen:true});
           popover.contentView = popover_content_view;
           popover.show({view:e.source, animation:true});
       });
       
       content_view.add(button);
       
       win.add(content_view);
       win.open();
       
  8. Vishal Duggal 2015-02-26

    This is not a bug. Popovers on iOS8 are ViewControllers and hence control status bar appearance. On earlier versions they are not view controllers. On the Titanium platform status bar appearance is controlled by the Window Proxy. So set the contentView property of the popover to a Window Proxy.
  9. Lee Morris 2017-03-28

    Closing ticket as the issue mentioned is not our bug.

JSON Source