Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5291] iOS: Window backgroundImage property does not load remote images

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-06-26T21:55:19.000+0000
Affected Version/sRelease 1.7.2, Release 2.0.2
Fix Version/sn/a
ComponentsiOS
LabelsSupportTeam, api, parity, training
ReporterFrancisco Antonio Duran Ramirez
AssigneeNeeraj Gupta
Created2011-09-15T09:42:02.000+0000
Updated2017-03-21T21:07:12.000+0000

Description

Problem

Customer can not load remote images with the property backgroundImage in a window

Reproducible 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.

Helpdesk

http://appc.me/c/APP-318633

Comments

  1. Blain Hamon 2012-06-26

    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.
  2. Lee Morris 2017-03-21

    Closing ticket as invalid.

JSON Source