Remote images on CoverFlow
Is it possible to load remote url images into the iphone coverflow?
6 Answers
-
Tried that before, u sure can.
-
Well I found a way around it. It doesn't work with the images array but If i just set local dummy images and then right after it use setURL to set the remote urls, it works fine.
-
Would someone mind posting an example of remote image loading in Coverflow? I've tried both putting the URL in the images array as well as loading a temporary image from local and then using setURL and I keep getting
[ERROR] Couldn't load coverflow image url:
errors… and I know it got the image from the webserver as the access_log says it's sent. Any help would be appreciated.
-
Hello,
I have the same issue that you have but I can't make your solutions working.
It's possible to have your example?
Mine :
By the way I not sure how to use the setUrl
var images = []; for (var c=0;c<json[0].results.length;c++) { images[c] = json[0].results[c].image; } coverFlowView = Titanium.UI.createCoverFlowView({ images:images, backgroundColor:'#000', height: 120, top: 0 }); win.add(coverFlowView); for (var t=0;t<json[0].results.length;t++) { coverFlowView.setURL (t,json[0].results[t].image) }
Thanks
-
Stupidly enough, this used to work.
It still works if you compile with Titanium 1.3. It broke in 1.4
I have send a ticked in lighthouse, but no response yet :( -
var remoteImages = myRemoteImagesURLs; var coverFlowImages; var someWidth = 12345; var someheight = 12345; for (var i = 0; i < remoteImages.length; i++) { coverFlowImages.push({image: remoteImages[i], width: someWidth, height: someheight}); } myCoverFlowView.images = coverFlowImages;