TiTouchImageView icon indicating copy to clipboard operation
TiTouchImageView copied to clipboard

Support URL IMAGE?

Open myselfdeveloping opened this issue 10 years ago • 1 comments

Hi, the module supports the URL image?

myselfdeveloping avatar Nov 07 '15 18:11 myselfdeveloping

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 $;
};


AppWerft avatar Dec 19 '15 15:12 AppWerft