Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10519] iOS: Titanium.UI.iOS: Background color set to COLOR_GROUP_TABLEVIEW_BACKGROUND does not work on iPad

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.2
Fix Version/sn/a
ComponentsiOS
Labelsapi, qe-ios082012, reprod
ReporterSatyam Sekhri
AssigneeUnknown
Created2012-08-21T06:01:21.000+0000
Updated2018-02-28T20:03:25.000+0000

Description

A window set with iOS specific background color COLOR_GROUP_TABLEVIEW_BACKGROUND does not show up properly on iPAD. This is not a regression. The issue occurs since 2.1.0 Steps to Reproduce: 1. Create an application with code below and launch the test on iPad Actual: The window opens up with black background. Refer to attached screenshot for incorrect background on iPad and correct background on iPhone Expected: on iPad, the window should open up with a striped background for COLOR_GROUP_TABLEVIEW_BACKGROUND, as it does on iPhone
var win = Ti.UI.createWindow();
 
win.title='Mr. Stripey';
win.backgroundColor= Ti.UI.iOS.COLOR_GROUP_TABLEVIEW_BACKGROUND;
var label = Ti.UI.createLabel({
	text: 'This is test for Striped color',
	color:'white'
});
win.add(label);
 
win.open();

Attachments

FileDateSize
iPAD_StripedColor.png2012-08-21T06:01:21.000+000015643
iPhone_StripedColor.png2012-08-21T06:01:21.000+000011138

Comments

  1. Lee Morris 2017-06-22

    I am able to reproduce this issue with the following environment; iPad (10) and iPhone 7 (10.2) - it appears on both iPad and iPhone with black background. Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source