Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14997] iOS7: 'backgroundgradient' hides the text and subviews in the TableViewRow

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-09-03T20:44:17.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 18, 2013 Sprint 18 API, Release 3.1.3, Release 3.2.0
ComponentsiOS
LabelsbackgroundGradient, ios7, tableviewrow
ReporterMeenakshi Pathak
AssigneeVishal Duggal
Created2013-08-29T10:12:27.000+0000
Updated2013-09-13T23:27:44.000+0000

Description

In iOS7, text or subviews within tableViewRow if we use the bacgroundgradient property for a TableViewRow. It appears only the moment when we click on a row. Here is the test case:
var win = Ti.UI.createWindow({
	backgroundColor : 'white'
});

var table = Ti.UI.createTableView({
	objName : 'table'
});
var data = [];

for (var i = 0; i <= 20; i++) {

	var row = Ti.UI.createTableViewRow({
		className : 'row',
		objName : 'row',
		touchEnabled : true,
		height : 100,

		backgroundGradient : {
			type : 'linear',
			startPoint : {
				x : '100%',
				y : '0%'
			},
			endPoint : {
				x : '100%',
				y : '100%'
			},
			colors : [{
				color : 'white',
				offset : 0.0
			}, {
				color : '#ddd',
				offset : 0.25
			}, {
				color : '#787878',
				offset : 1.0
			}],
		},
		title : 'test'
	});
	data.push(row);
}
table.data = data;
win.add(table);
win.open();
Note : Tested with iOS 6 and its working fine. Please find the attached images of the screenshots of iOS6 and iOS7.

Attachments

FileDateSize
screenshot_ios6.1_xcode4.6.3.png2013-08-29T10:13:54.000+0000152669
screenshot_ios7_xcode5-DP4.png2013-08-29T10:13:54.000+000074506

Comments

  1. Ingo Muschenetz 2013-08-29

    [~srahim], thoughts?
  2. Vishal Duggal 2013-09-03

    master PR - https://github.com/appcelerator/titanium_mobile/pull/4638
  3. Vishal Duggal 2013-09-03

    Backport to 3_1_X - https://github.com/appcelerator/titanium_mobile/pull/4639
  4. Paras Mishra 2013-09-09

    Verified as fixed. Using environment: Device : iPod touch 1 5th Generation, iOS version: 7 SDK: 3.1.3.v20130908095038 CLI version : 3.1.2 OS : MAC OSX 10.8.4 Alloy : 1.2.2-beta Appcelerator Studio, build: 3.1.3.201309072408 XCode : 5

JSON Source