TableViewRow className

You must Login before you can answer or comment on any questions.

Tiny problem, but is affecting my app throughout.

I am using className to identify which type of row is clicked in my app.

However, here is what is happening.

Assume the className property is set to "dummy"

Upto iOS 5.1.x, when I click on a row, I make it log the className of the row. In this case, it logs out correctly as "dummy"

On iOS 6.0, it logs as "TiUITableViewRowProxy"

Any clue on why this could be happening as how this can be fixed?

Tried on 2.1.2.GA and the 2.1.3RC build.

— asked 8 months ago by Nikhil Nigade
1 Comment
  • In case you need to look at the code:

    tableView = Ti.UI.createTableView({
            width: Ti.UI.FILL,
            height: Ti.UI.FILL,
            separatorStyle: 0
        });
     
            var data = [];
     
            for(i=0; i<4; i++) {
     
                var row = Ti.UI.createTableViewRow({
                    height: 76,
                    className: 'dummy',
                    backgroundImage: 'row.png',
                    selectedBackgroundImage: 'row_over.png'
                });
     
                data.push(row);
     
                row = null;
     
            }
     
        tableView.data = data;
     
        tableView.addEventListener('click', tableViewClick);
     
        win.add(tableView);
     
    function tableviewClick(e) {
        console.log(e.row.className);
    }

    — commented 8 months ago by Nikhil Nigade

1 Answer

Accepted Answer

There was a bug that is fixed:

http://jira.appcelerator.org/browse/TIMOB-11044

Try to use a CI build.

— answered 8 months ago by Dan Tamas
answer permalink
11 Comments
  • Ah, super. Glad it was fixed.

    Pardon my lack of knowledge, but what is a CI build and how would I go about using it?

    I'm sure I need to download the TiSDK in which this was fixed. Could you please guide me to that?

    Thank you for your help. Appreciate it.

    — commented 8 months ago by Nikhil Nigade

  • A CI build is a Continuous Integration build (or a nightly build if you want). Is the last stage of the code not fully tested and sometimes not fully working, but usually is way ahead of the last release version.

    go here,

    http://builds.appcelerator.com.s3.amazonaws.com/index.html

    select a branch (2.1.x or master if you feel brave :) ) download the last one and install it.

    — commented 8 months ago by Dan Tamas

  • Thank you Dan. On it. Cheers.

    I'm feeling lucky

    — commented 8 months ago by Nikhil Nigade

  • Show 8 more comments

Your Answer

Think you can help? Login to answer this question!