title: iOS take a screen snapshot only of background view
body: <p>I have a UIView (background) that contains another UIView (custom UI element).</p>
  
  <p>Pressing a button will slide the top most view up to display more options.</p>
  
  <p>I want to take a snapshot of everything on the screen with the exception of the top most view and the items it contains. This will be used to give the iOS7 blurred effect, but the UI that is animating is also put in the screenshot which obviously ruins the effect.</p>
  
  <p>Here is my code that takes a snap shot of the whole screen (including the top most view).</p>
  
  <p>Current Code:</p>
  
  <pre><code>-(UIImage *)blurredSnapshot
  {
  
      UIGraphicsBeginImageContext(self.view.frame.size);
  
      [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
  
      // Get the snapshot
      UIImage *snapshotImage = UIGraphicsGetImageFromCurrentImageContext();
  
      // Now apply the blur effect using Apple's UIImageEffect category
      UIImage *blurredSnapshotImage = [snapshotImage applyLightEffect];
  
      UIGraphicsEndImageContext();
  
      return blurredSnapshotImage;
  
  }
  </code></pre>
  
  <p>Is this even possible? Thanks! </p>