[TIMOB-13986] iOS: backgroundImage of view from remote URL not loading
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-02-02T01:57:43.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.2.0 |
Fix Version/s | Release 5.4.0 |
Components | iOS |
Labels | parity, qe-5.4.0 |
Reporter | Dharmik Patel |
Assignee | Hans Knöchel |
Created | 2013-05-24T21:46:13.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
app.js | 2013-05-24T21:46:13.000+0000 | 516 |
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.
@Daniel Sefton : Still it is not working on iOS 6 simulator with Ti SDK 3.1 GA.
Still not working in 3.2.3 GA (working on Android) Duplicate threads: * TIMOB-15556 * TIMOB-13990 * TIMOB-3228
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.
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
PR: https://github.com/appcelerator/titanium_mobile/pull/7644
CR and FT passed. PR merged.
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.*