iphone - App getting crashed when completing Did Finish Picking ImagePicker Controller -
i using burst mode in app using uiimagepickercontroller, once when complete app more number of images taken app getting crashed showing error:
app quit unexpectedly terminated due memory pressure
-(void) imagepickercontroller:(uiimagepickercontroller *)picker didfinishpickingmediawithinfo: (nsdictionary *)info { uiimage *image = [info objectforkey:uiimagepickercontrolleroriginalimage]; [arrayimages addobject:image]; if (pictaken) { [imagepicker takepicture]; } else { [imagepicker dismissviewcontrolleranimated:yes completion:^{ [self imageplace];//where images in view presented same in ios camera video// [[nsnotificationcenter defaultcenter] removeobserver:self]; [[nsnotificationcenter defaultcenter] removeobserver:self name:avcapturesessiondidstartrunningnotification object:nil]; }]; }
}
this related memory if ios app
runs , when low memory condition
detected on ios device
, virtual memory system sends out notifications asking applications release memory. these notifications sent running applications , processes, in effort reduce total amount of memory in use. if memory usage remains high, system may terminate background processes ease memory pressure. if enough memory can freed, application continue run , no crash report generated. otherwise, app terminated ios
, , low memory report generated. more can review this.
so can use instruments
tool resolving problem , detect memory usage , leakage , follow memory management technique.
Comments
Post a Comment