title: Gaussian Blur Filter Reversal: iOS
body: <p>I've got a gaussian blur which I'm doing for an app. </p>
  
  <pre><code>    //Get a UIImage from the UIView
      UIGraphicsBeginImageContext(self.view.bounds.size);
      [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
      UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
  
      //Blur the UIImage
      CIImage *imageToBlur = [CIImage imageWithCGImage:viewImage.CGImage];
      CIFilter *gaussianBlurFilter = [CIFilter filterWithName:@"CIGaussianBlur"];
      [gaussianBlurFilter setValue:imageToBlur forKey:@"inputImage"];
      [gaussianBlurFilter setValue:[NSNumber numberWithFloat:2] forKey:@"inputRadius"];
      CIImage *resultImage = [gaussianBlurFilter valueForKey:@"outputImage"];
      UIImage *endImage = [[UIImage alloc] initWithCIImage:resultImage];
  
      //Place the UIImage in a UIImageView
      newView = [[UIImageView alloc] initWithFrame:self.view.bounds];
      newView.image = endImage;
      [self.view addSubview:newView];
  </code></pre>
  
  <p>It works great, but I want to be able to reverse it and return the view back to normal.</p>
  
  <p>How can I do this as trying to simply remove the blur's view from it's superview didn't work. I've also tried setting various properties to nil with no luck. </p>