Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3228] iPhone backGroundImage with remote images

GitHub Issuen/a
TypeBug
PriorityMedium
StatusResolved
ResolutionCannot Reproduce
Resolution Date2012-09-04T11:04:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelslook1
ReporterChris
AssigneeNeeraj Gupta
Created2011-04-15T03:40:00.000+0000
Updated2017-03-28T17:18:39.000+0000

Description

Trying to use a remote image for a background of a view.

view = Ti.UI.createView({
backGroundImage:'http:url-to-image' });

The image will appear on an Android device but not on the iPhone.

Can this be looked into?

Comments

  1. Junaid Younus 2012-09-04

    Tested on a Samsung Galaxy S2 and on the iOS simulator using TiSDK 2.2.0v20120904101713, unable to reproduce the issue. Ticket marked as resolved.
       var win = Ti.UI.createWindow({backgroundColor: 'white'});
       
       var image = Ti.UI.createImageView({
           image: 'http://cdn.memegenerator.net/instances/400x/26207872.jpg'
       });
       
       win.add(image);
       win.open();
       
  2. kent hao 2012-10-05

    why it's marked 'Resolved'? the problem is still there. In Junaid's comment, the code slice is using the ImageView, but not the View. Currently, the backgroundImage still can not fetch image with remote URL.
  3. Shannon Hicks 2012-10-05

    Agreed, the test code does not actually test the bug as reported. I had someone asking about remote background images the other day in IRC, too.
  4. Michael Gangolf 2014-05-03

    BackgroundImage on view is still not working on iOS (3.2.3 GA); it's working on Android Testcode:
       var win = Ti.UI.createWindow({});
       var bg = Ti.UI.createView({
                       backgroundColor : "transparent", backgroundImage : "http://...../image.jpg", top : 0, bottom : 0, left : 0, right : 0, width : Ti.UI.FILL, height : Ti.UI.FILL
       });
       win.add(bg);
       
    using an imageview with image set to the external URL will work.

JSON Source