Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13986] iOS: backgroundImage of view from remote URL not loading

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-02-02T01:57:43.000+0000
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/sRelease 5.4.0
ComponentsiOS
Labelsparity, qe-5.4.0
ReporterDharmik Patel
AssigneeHans Knöchel
Created2013-05-24T21:46:13.000+0000
Updated2016-06-09T17:49:42.000+0000

Description

*Problem* The backgroundImage of the view from a remote URL is not loading on iOS. It works fine on Android. *Test case*
var win = Ti.UI.createWindow({
	backgroundColor : "#FFF"
});

var view = Ti.UI.createView({
	backgroundImage : 'http://dl.dropboxusercontent.com/u/72783403/AtoZ/1.png'
});
win.add(view);

win.open();

Attachments

FileDateSize
app.js2013-05-24T21:46:13.000+0000516

Comments

  1. Daniel Sefton 2013-05-24

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and 3.2 CI. Works as expected on Android 4.1.2 x86 emulator.
  2. Dharmik Patel 2013-05-25

    @Daniel Sefton : Still it is not working on iOS 6 simulator with Ti SDK 3.1 GA.
  3. Michael Gangolf 2014-05-03

    Still not working in 3.2.3 GA (working on Android) Duplicate threads: * TIMOB-15556 * TIMOB-13990 * TIMOB-3228
  4. Be Rushton 2014-11-25

    Another one of Titaniums annoying bugs. This should be working yet I have to go through my code to add workarounds because it is not.
  5. Michael Gangolf 2015-04-05

    Someone found a way to do it: http://stackoverflow.com/a/29239316 Now someone needs to find a proper way to implement it into https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUtils.m#L1825
  6. Hans Knöchel 2016-01-26

    PR: https://github.com/appcelerator/titanium_mobile/pull/7644
  7. Chee Kiat Ng 2016-02-02

    CR and FT passed. PR merged.
  8. Harry Bryant 2016-06-09

    Verified as fixed, backgroundImage of view obtained from a remote URL now loads correctly. Tested On: iPhone 6S (9.3.2) Device Mac OSX El Capitan 10.11.5 Ti SDK: 5.4.0.v20160608165242 Appc Studio: 4.6.0.201605180604 Appc NPM: 4.2.7.-2 App CLI: 5.4.0-11 Xcode 7.3 Node v4.2.6 *Closing ticket.*

JSON Source