在ios7+中从相机拍照时收到内存警告;框架
我在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); } takePhotoAction:function(){ var destinationType=navigator.camera.destinationType; navigator.camera.getPicture(this.takePhotoSuccess,this.takePhotoFail,{quality:50,targetWidth:300,targetLight:300,destinationType:destinationType.DATA_URL,sourceType:1,correctOrientation:true}); }, takePhotoSuccess:函数(imgdata){ log(“这里我们将图像数据提供给图像src”); }, takePhotoFail:函数(错误){ log(“错误为”+错误); }在ios7+中从相机拍照时收到内存警告;框架,ios,cordova,ios7,sencha-touch,Ios,Cordova,Ios7,Sencha Touch,我在phonegap和sencha touch中开发了一个应用程序。该应用程序在ios6中运行良好(我没有收到任何内存警告),但在ios7中,我在拍摄相机照片时定期收到内存警告。收到内存警告后,应用程序崩溃。 我正在这样努力 takePhotoAction:function(){ var destinationType=navigator.camera.DestinationType; navigator.camera.getPicture(this.takePhotoSuc
请帮助我如何解决此问题。提前谢谢 这是Objective-C代码?不,这是sencha touch和phonegap代码phonegap的版本是什么?如果您使用的是旧版本的cordova 2.4.0,则可能不支持ios7