Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11044] iOS: className attribute returns TiUITableViewRowProxy in iOS 6

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-21T18:28:55.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 2.1.3, Release 3.0.0, Sprint 2012-19 API, 2012 Sprint 19
ComponentsiOS
Labelsqe-ios6, qe-testadded
ReporterAllen Yeung
AssigneeBlain Hamon
Created2012-09-21T11:56:56.000+0000
Updated2014-06-19T12:43:19.000+0000

Description

Reproduction Steps: 1. Run the following code in an iOS 6 emulator:
Ti.UI.setBackgroundColor('#000');
var win = Ti.UI.createWindow({
	backgroundColor : 'black',
	exitOnClose : true,
	fullscreen : false,
	title : 'TableView Demo'
});

var tableData = [];
var row = Ti.UI.createTableViewRow({
	className : 'forumEvent', // used to improve table performance
	selectedBackgroundColor : 'white',
	rowIndex : 1, // custom property, useful for determining the row during events
	height : 110
});

var labelUserName = Ti.UI.createLabel({
	color : '#576996',
	font : {
		fontFamily : 'Arial',
		fontSize : 16,
		fontWeight : 'bold'
	},
	text : 'Fred Smith ' + 1,
	left : 70,
	top : 6,
	width : 200,
	height : 30
});
row.add(labelUserName);
tableData.push(row);

var tableView = Ti.UI.createTableView({
	backgroundColor : 'white',
	data : tableData
});

win.addEventListener('click', function() {
	Ti.API.info('------------------------className: ' + row.className);
});

win.add(tableView);
win.open();
2. Click on the first row Expect Results: The log message should print out '------------------------className: forumEvent' Actual Results: The log message should print out '------------------------className: TiUITableViewRowProxy'

Comments

  1. Sabil Rahim 2012-09-21

    MASTER PR https://github.com/appcelerator/titanium_mobile/pull/3026
  2. Olga Romero 2012-09-24

    Tested and verified fix with: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK, build: 2.1.3.v20120921190208 Titanium SDK, build: 3.0.0.v20120924114913 Device: iPhone 5 (ios6.0)

JSON Source