I have an application for receiving images in batch mode, but one time when the image is taken and is about to come to view, its receipt crashed and errors indicate that "The application was canceled due to memory pressure"
I need to take more images when the user holds the camera button ... after Leave the button, I need to show all the images as a slideshow..what should I do?
My code is:
- (void)longPress:(UILongPressGestureRecognizer*)gesture {
if (gesture.state == UIGestureRecognizerStateBegan) {
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(takePictures)
name:AVCaptureSessionDidStartRunningNotification object:nil];
}
else if (gesture.state == UIGestureRecognizerStateEnded)
{
}
-(void)takePictures
{
[imagePicker takePicture];
}
Help me..
source
share