title: Terminated App due to memory Pressure
body: <p>I have an app to take images in Burst mode ,but once when the image is take and about to come the preview its getting crashed and error shows that <strong>"Terminated App due to memory Pressure "</strong></p>
  
  <p>I need to take more number of images when user holds the camera button...after Leave the button ,i need to show all the images as slideshow..what i have to do ?</p>
  
  <p>My code is:</p>
  
  <pre><code>- (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];
  }
  </code></pre>
  
  <p>Help me..</p>