[TIMOB-5801] iOS: UI - Add support for underPageBackgroundColor
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-05-15T13:50:40.000+0000 |
| Affected Version/s | Release 2.0.1 |
| Fix Version/s | Release 2.1.0, Sprint 2012-10 API |
| Components | iOS |
| Labels | api, qe-testadded |
| Reporter | Sindre Sorhus |
| Assignee | Sabil Rahim |
| Created | 2011-10-20T00:21:37.000+0000 |
| Updated | 2012-06-06T11:58:46.000+0000 |
Description
The color underPageBackgroundColor is available in iOS 5. So it should be made available:
http://developer.apple.com/library/IOS/#documentation/UIKit/Reference/UIColor_Class/Reference/Reference.html
Pull request made - https://github.com/appcelerator/titanium_mobile/pull/566
Please see Matt Apperson's Pull Request for this.
Testing code for the [PULL REQUEST](https://github.com/appcelerator/titanium_mobile/pull/2163)
// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title:'SCROLLVIEW', backgroundColor:Ti.UI.iOS.COLOR_SCROLLVIEW_BACKGROUND }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'SCROLLVIEW', window:win1 }); // // create controls tab and root window // var win2 = Titanium.UI.createWindow({ title:'VIEW_FLIPSIDE', backgroundColor:Ti.UI.iOS.COLOR_VIEW_FLIPSIDE_BACKGROUND }); var tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'VIEW_FLIPSIDE', window:win2 }); // // create controls tab and root window // var win3 = Titanium.UI.createWindow({ title:'UNDER_PAGE', backgroundColor:Ti.UI.iOS.COLOR_UNDER_PAGE_BACKGROUND }); var tab3 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'UNDER_PAGE', window:win3 }); // // add tabs // tabGroup.addTab(tab1); tabGroup.addTab(tab2); tabGroup.addTab(tab3); // open tab group tabGroup.open();Tested with 2.1.0.v20120605113335 on iPhone 4s 5.1 iPhone 3gs 4.3