[TIMOB-11044] iOS: className attribute returns TiUITableViewRowProxy in iOS 6
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-21T18:28:55.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 2.1.3, Release 3.0.0, Sprint 2012-19 API, 2012 Sprint 19 |
Components | iOS |
Labels | qe-ios6, qe-testadded |
Reporter | Allen Yeung |
Assignee | Blain Hamon |
Created | 2012-09-21T11:56:56.000+0000 |
Updated | 2014-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'
MASTER PR https://github.com/appcelerator/titanium_mobile/pull/3026
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)