How to select multiple images from gallery in tita

2020-03-25 03:16发布

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) {
    }
});

2条回答
一夜七次
2楼-- · 2020-03-25 03:40

Selecting multiple images isn't supported either by Titanium nor native iOS.

You can try this iOS Asset Library Access module. However, I read that there are some issues with it.

查看更多
Evening l夕情丶
3楼-- · 2020-03-25 03:50

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.

查看更多
登录 后发表回答