如何钛选择多个图像,从画廊? [英] How to select multiple images from gallery in titanium?

查看:110
本文介绍了如何钛选择多个图像,从画廊?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里,我有code,从图库中选择图片,但如何从图库中选择多个图片?

  Ti.Media.openPhotoGallery({
    // allowEditing:真实,
    mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO]
    成功:函数(E){
        警报(E);
        ImageView.image = e.media;
        //alert('height:'+e.media.height+'width:'+e.media.height);
        lblWidth.text ='W:'+ e.media.width;
        lblHeight.text =H:+ e.media.height;
    },
    取消:函数(){
    },
    错误:函数(ERR){
    }
});
 

解决方案

在这里,我找到了模块机器人

链接的市场(多图选择器)和的链接为在github源$ C ​​$ C(TiMultiImagePicker)。 这里是链接为iOS模块。

Here I have the code to select image from gallery, but how can I select multiple images from gallery?

Ti.Media.openPhotoGallery({
    // allowEditing:true,
    mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
    success : function(e) {
        alert(e);
        ImageView.image = e.media;
        //alert('height:'+e.media.height+'width:'+e.media.height);
        lblWidth.text = 'W :'+e.media.width;
        lblHeight.text ='H :' +e.media.height;
    },
    cancel : function() {
    },
    error : function(err) {
    }
});

解决方案

Here I found the module for android

Link for marketplace (Multi Image Picker) and Link for the source code on github (TiMultiImagePicker). and here is the Link for iOS module.

这篇关于如何钛选择多个图像,从画廊?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆