[TIMOB-5291] iOS: Window backgroundImage property does not load remote images
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-06-26T21:55:19.000+0000 |
Affected Version/s | Release 1.7.2, Release 2.0.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | SupportTeam, api, parity, training |
Reporter | Francisco Antonio Duran Ramirez |
Assignee | Neeraj Gupta |
Created | 2011-09-15T09:42:02.000+0000 |
Updated | 2017-03-21T21:07:12.000+0000 |
Description
Problem
Customer can not load remote images with the property backgroundImage in a windowReproducible steps:
1.Run the code below.Expected behavior
Customer wants to use the property backgroundImage to load remote images in a window.Sample Code:
var win1 = Titanium.UI.createWindow({
title:'My image',
backgroundImage:'http://shakthiiacademy.com/yahoo_site_admin/assets/images/icon_check.4773029_std.png'
});
var view = Ti.UI.createView({
top: 10, left: 10, right: 10, height: 50, backgroundImage:'http://shakthiiacademy.com/yahoo_site_admin/assets/images/icon_check.4773029_std.png'
});
win1.add(view);
win1.open();
The remote images are also not loaded using backgroundImage property in a view. This works on Android.
This is because remote image loading can lead to race conditions and has high latency (Note that this is NOT something provided natively). The only properties that support remote images are the image and images properties in imageView and coverflowView, respectively. This is an *intentional* *design* *decision* as to not have remote image loading significantly impact image use in terms of speed and reliability in all other views. Not only that, but there is no structure for a default image for background images and the like; supporting remote image background carry a lot of baggage. Moving that this bug be marked invalid.
Closing ticket as invalid.