Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15556] iOS7: remote backgroundImage not working in TableViewRows

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
LabelsSupportTeam
ReporterEzoom Agency
AssigneeUnknown
Created2013-10-21T13:32:58.000+0000
Updated2018-02-28T20:03:53.000+0000

Description

When I set the backgroundImage property of a TableViewRow, if it's a remote url image not a local file it does not load the image. Example bellow:
var win = Ti.UI.createWindow({
 
}) ;
 
// Create an array of explicitly defined custom TableViewRows
var tbl_data = [];
for (var i = 0; i < 10; i++) {
    var row = Ti.UI.createTableViewRow({
        backgroundImage:i%2==0?'KS_nav_ui.png':'http://www.origami-instructions.com/images/simple-yatch/thumbnails/11-origami-simple-yatch_11.JPG',
    });
    var label = Ti.UI.createLabel({
        left: 10,
        text: 'Row ' + (i+1)
    });
 
    row.add(label);
    tbl_data.push(row);
}
 
// now assign that array to the table's data property to add those objects as rows
var table = Titanium.UI.createTableView({
    data:tbl_data
});
 
win.add(table);
win.open();

Comments

  1. Shameer Jan 2014-09-04

    Issue reproduces with TiSDK 3.1.3 and 3.4.0 Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.4.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1

JSON Source