setBackgroundImage not working iPhone 5

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

accommodation_table.addEventListener('click', function(e) {
        // alert("Title:"+e.row.title);
        // alert("Desc:"+e.row.desc);
        Ti.App.header_img = "images/accomm/nav/accommodation-heading.png";
 
        if ( typeof (e.row.row_title) != 'undefined' && e.row.row_title != "") {
            /*
             * Set Select Colour
             */
            var prev_row = last_row;
            if (prev_row != null) {
                if (typeof(accommodation_table.data[0].rows[prev_row]) != "undefined") {
                    accommodation_table.data[0].rows[prev_row].setBackgroundImage(dir_path.R + 'images/town/listing/separator.png');
                }
            }
            e.row.setBackgroundImage(dir_path.R + 'images/town/listing/block-on.png');
        } else
            return;
});
[INFO] One moment, building ... [INFO] Titanium SDK version: 2.1.3 (10/02/12 16:16 15997d0) [INFO] iPhone Device family: iphone [INFO] iPhone SDK version: 6.0 [INFO] iPhone simulated device: iphone

This works fine for Andriod, but is not working for iPhone. As the row background image is set.

1 Answer

try setting a view with background color to row rather than setting backgroundImage directly.

Your Answer

Think you can help? Login to answer this question!