[TIMOB-23691] iOS: Expose status-bar background-color
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-07-29T15:58:09.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.0.0 |
| Components | iOS |
| Labels | ios, qe-6.0.0, statusbar |
| Reporter | Flavio De Stefano |
| Assignee | Hans Knöchel |
| Created | 2016-07-27T15:20:32.000+0000 |
| Updated | 2016-09-15T09:24:37.000+0000 |
Description
Added ability to change status bar background color
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();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.*