Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23666

iOS: Button setting remote backgroundImage doesn't appear to work

    Details

    • Story Points:
      1
    • Sprint:
      2016 Sprint 15 SDK, 2017 Sprint 02 SDK

      Description

      Setting the backgroundImage property with a remote image doesn't appear to be working.

      Demo Code:

      var win = Ti.UI.createWindow({
              backgroundColor: 'white'
      });
       
      var url = Ti.UI.createButton({
              title: "URL Image",
      	top: 100,
              height: 100,
      	backgroundImage: "http://www.devnetwork.com/wp-content/uploads/2015/07/Appcelerator-logo.png",
      });
       
      var local = Ti.UI.createButton({
      	title: "Local Image",
              bottom: 100,
              height: 100,
      	backgroundImage: "images/appcelerator_small.png",
      });
       
      setTimeout(function() {
              url.setBackgroundImage("https://upload.wikimedia.org/wikipedia/commons/a/ab/Logo_TV_2015.png");
              local.setBackgroundImage("images/atlanta.jpg");
      },2000);    
       
      win.add(local)
      win.add(url);
      win.open();
      

      Test Case:
      Run the app and take a picture.
      Expected Result:
      The two buttons should all have a backgroundImage one containing a local image, another containing an image from a URL.
      Actual Results
      Passing in a url or local path doesn't work with setBackgroundImage.

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              apetkov Angel Petkov
              Reviewer:
              Hans Knöchel
              Tester:
              Lee Morris (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9935
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code