title: UIView shadow not working
body: <p>This is my code.</p>
  
  <pre><code>listView.layer.masksToBounds = NO;
  listView.layer.shadowOffset = CGSizeMake(-3, 3);
  listView.layer.shadowColor=[[UIColor blackColor] CGColor];
  listView.layer.shadowRadius = 4;
  listView.layer.shadowOpacity = 1.0;
  [listView.layer setShouldRasterize:YES];
  </code></pre>
  
  <p>It works good with shadow effect.</p>
  
  <p>While changing </p>
  
  <pre><code>listView.layer.masksToBounds = YES;
  </code></pre>
  
  <p>I didnt get shadow effect.</p>