UIImagePickerController Crash after 5-7 shots - again

Well, I know that this one was beaten to death on this forum, but I still have a memory problem, and I tried all the methods on the Internet to get around this.

I have an application that uses the UIImagePickerController to capture camera images. I tried to create and destroy a controller for each image and save it for the life of the application. Both do not work. The first way the phone crashes almost immediately. While the second, leaving the controller around, gives out the application after about 5-7 images.

My original application used an undocumented API to get around this problem, but Apple rejected it because of this. I really need to find my application in the store. Does anyone have a code showing how they got the problem?

I know that there is a way, because there are applications in the store using the camera, but I just can not understand. Any help is much appreciated!

I can also post my code here if necessary.

+3
source share
2 answers

This article solved all my problems: http://wiresareobsolete.com/wordpress/tag/uiimagepickercontroller/ I hope this helps.

+2
source

monotouch. . UIImage . . Monotouch (#) C , . . .Dispose() .

, . , - , . , , . , .

+1

Source: https://habr.com/ru/post/1706604/


All Articles