Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5801] iOS: UI - Add support for underPageBackgroundColor

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-05-15T13:50:40.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-10 API
ComponentsiOS
Labelsapi, qe-testadded
ReporterSindre Sorhus
AssigneeSabil Rahim
Created2011-10-20T00:21:37.000+0000
Updated2012-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

Comments

  1. Matthew Apperson 2011-10-20

    Pull request made - https://github.com/appcelerator/titanium_mobile/pull/566
  2. Paul Dowsett 2011-12-27

    Please see Matt Apperson's Pull Request for this.
  3. Sabil Rahim 2012-05-09

    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();
       
       
       
  4. Natalie Huynh 2012-06-06

    Tested with 2.1.0.v20120605113335 on iPhone 4s 5.1 iPhone 3gs 4.3

JSON Source