在ios7 + phonegap中从相机拍摄照片时收到内存警告

时间:2014-01-20 06:20:01

标签: ios cordova ios7 sencha-touch

我在phonegap和sencha touch中开发了一个应用程序。该应用程序在ios6中工作正常(我没有得到任何内存警告)但在ios7中我从摄像头拍照时经常收到内存警告。获取内存警告后,应用程序崩溃了。 我正在尝试这样

takePhotoAction:function(){
     var destinationType=navigator.camera.DestinationType;
     navigator.camera.getPicture(this.takePhotoSuccess, this.takePhotoFail, {quality: 50,targetWidth:300,targetHeight:300,destinationType: destinationType.DATA_URL,sourceType:1,correctOrientation: true });
},
takePhotoSuccess:function(imgdata){
    console.log("Here we are giving the image data to the image src");
},
takePhotoFail:function(error){
    console.log("the error is "+error);
}

请帮助我如何解决此问题。提前致谢。

0 个答案:

没有答案
相关问题