Skip to content

Instantly share code, notes, and snippets.

View henteko's full-sized avatar
😻
💯💯💯💯💯💯💯💯

henteko henteko

😻
💯💯💯💯💯💯💯💯
View GitHub Profile
@henteko
henteko / Ti.UI.ImageView#imageWithCache
Created September 29, 2011 07:37 — forked from func09/Ti.UI.ImageView#imageWithCache
TitaniumのImageViewでリモートURLの画像を永続的にキャッシュする
$$$ = {};
$$$.ui = {};
$$$.ui.createImageView = function(options){
var ui = Ti.UI.createImageView(options);
// 画像を永続化してキャッシュ
ui.imageWithCache = function(url){
url = url.replace(/\?[0-9]+$/,'');