title: Shadow on left and right side
body: <p>I am adding a shadow to a <code>CALayer</code> but I would like this shadow to only be on the left and right side of the view. Does anyone know if this is possible?</p>
  
  <p>Currently, I am adding the shadow like this:</p>
  
  <pre><code>view.layer.shadowColor = [UIColor blackColor].CGColor;
  view.layer.shadowOffset = CGSizeMake(0.0f, 0.0f);
  view.layer.shadowOpacity = 1.0f;
  view.layer.shadowRadius = 4.0f;
  view.layer.shadowPath = [UIBezierPath bezierPathWithRect:view.bounds].CGPath;
  </code></pre>