Quantcast
Viewing all articles
Browse latest Browse all 8068

Ipad application is crashing on openPhotoGallery()

Hi, I am developing an application for ipad. I am adding this code for accessing the gallery

Ti.Media.openPhotoGallery({
    allowEditing : true,
    mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
    success : function(e) {
 
    },
    error : function(err) {
        var message;
        message = 'Unexpected error: ' + err.code;
 
        Ti.UI.createAlertDialog({
            title : 'Camera',
            message : message
        }).show();
    },
    cancel : function() {
        Ti.API.info('cancelled');
    },
});
The problem is for the first time when application starts it asks for the permission to access the gallery, when we press ok then the app crashes with the error log pasted below. After that when we run the app again it works perfectly fine. Please help me out. My ios sdk is 7.0.3 and same is the simulator i.e 7.0.3

This is the error log


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>