Quick function for caching remote images in Appcelerator Titanium. Works on Titanium SDK 1.4.0+
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
UNLICENSE
cachedImageView.js

README.md

Titanium CachedImageView


For more, head out to my site or to the Appcelerator Developer Center.

Android and iOS Users:


Implementation works the same cross-platform. Enjoy!

Questions?


If you have any questions, please feel free to ask on my blog or via the contact information found there.

Usage:


cachedImageView Usage: Ti.include('lib/cachedImageView.js'); function createMyImage() { var win = Ti.UI.currentWindow;

    var imgMyImage = Ti.UI.createImageView({
        width: 120,
        height: 120,
        top:10,
                    left:10
    });

    cachedImageView('imageDirectoryName', 'http://MyRemoteServer.com/public/images/1.png', imgMyImage);

    win.add(imgMyImage);
    win.open({animated:true});
};

License:


No License, just use and enjoy!