Skip to content

Instantly share code, notes, and snippets.

View khopkins218's full-sized avatar

Kevin L. Hopkins khopkins218

  • Zeta
  • Charlottesville, VA
View GitHub Profile
@khopkins218
khopkins218 / cachedImageView.js
Created January 17, 2012 18:58 — forked from gcoop/cachedImageView.js
Appcelerator Titanium ImageView /w cache and cacheage. Supports retina display.
cachedImageView = function(basedir, uri, obj, attr, cacheage) {
/**
Appcelerator Titanium ImageView /w cache
This function attempts to cache a remote image and then returns it again
when it's requested.
The file is stored in a directory "basedir," this is to try and help
you keep files unique. It's not special or magical, but not dirty either.