简体   繁体   中英

UIImagePickerController crashes app and sometimes restarts the device - memory warning issue

We have customized the camera view and the move&scale options. after taking picture the original image will be opened up in the new view controller which has customized move&scale. It works fine but the app crashes and sometimes os restarts if we are open the camera more than around 7 times continuously. we checked the profile instruments there is no memory leaks its getting released after picture is taken

app throws memory warning continuously after around 7 time continues use of camera

we are using ARC.

Any idea?

i found the answer.there was a problem in image i used for cropping.

See the below links.

http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/ http://wiresareobsolete.com/wordpress/tag/uiimagepickercontroller/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM