How to select multiple images from a gallery in titanium?

Here I have a code to select an image from the gallery, but how can I select multiple images from the 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) {
    }
});
+4
source share
2 answers

Here I found a module for android

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

+4
source

Selecting multiple images is not supported by either titanium or native iOS.

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

+2

Source: https://habr.com/ru/post/1542469/


All Articles