Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23691] iOS: Expose status-bar background-color

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-07-29T15:58:09.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsiOS
Labelsios, qe-6.0.0, statusbar
ReporterFlavio De Stefano
AssigneeHans Knöchel
Created2016-07-27T15:20:32.000+0000
Updated2016-09-15T09:24:37.000+0000

Description

Added ability to change status bar background color

Comments

  1. Hans Knöchel 2016-07-27

    PR (community): https://github.com/appcelerator/titanium_mobile/pull/8162 Demo:
       
       // Set the global status-bar background-color
       Ti.UI.iOS.setStatusBarBackgroundColor("red");
       
       var win = Ti.UI.createWindow({
           backgroundColor : "#fff"
       }); 
       var nav = Ti.UI.iOS.createNavigationWindow({window:win});
       var btn = Ti.UI.createButton({
           title : "Open another window"
       });
       
       btn.addEventListener("click", function() {	
           // Open a new window to see that the status-bar background persists across windows
           nav.openWindow(Ti.UI.createWindow({backgroundColor: "#fff"}));
       });
       
       win.add(btn);
       nav.open();
       
  2. Harry Bryant 2016-09-15

    Verified, additionally tested with hex color code. Tested On: iPhone 6 Plus 10.0.1 Device & Simulator iPhone 5S 9.3.5 Device Mac OSX El Capitan 10.11.6 Ti SDK: 6.0.0.v20160914165725 Appc Studio: 4.8.0.201609101003 Appc NPM: 4.2.8-6 App CLI: 6.0.0-42 Xcode 8.0 Node v4.4.7 *Closing ticket.*

JSON Source