TiTouchImageView
TiTouchImageView copied to clipboard
Support URL IMAGE?
Hi, the module supports the URL image?
Yes, in this case try:
function getImageon(url, cb) {
var $ = Ti.Network.createHTTPClient({
onload : function() {
cb(this.responseData);
}
});
$.open('GET', url);
$.send();
}
module.exports = function(species) {
var $ = Ti.UI.createWindow({
backgroundColor : 'transparent',
title : '',
theme : 'Theme.NoActionBar',
fullscreen : true,
});
var TiTouchImageView = require('org.iotashan.titouchimageview');
$.zoomView = TiTouchImageView.createView();
getImage(species.bigimage, function(blob) {
$.zoomView.image = blob;
});
$.add(zoomView);
return $;
};