[TIMOB-15556] iOS7: remote backgroundImage not working in TableViewRows
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 3.1.3 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | SupportTeam |
| Reporter | Ezoom Agency |
| Assignee | Unknown |
| Created | 2013-10-21T13:32:58.000+0000 |
| Updated | 2018-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();
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