title: corner radius on layer and shadows
body: <p>I have a map view inside a cell and I want it to have corner radius and shadow. I either get only rounded corners OR only the shadow and no rounder corners when i set masks to bounds ON/OFF respectively. I looked up to this example:
  <a href="https://stackoverflow.com/questions/3316424/cant-add-a-corner-radius-and-a-shadow">Can&#39;t add a corner radius and a shadow</a></p>
  
  <p>but with no success.
  What am I missing? thank you in advance!</p>
  
  <pre><code>[[cell.map1 layer] setShadowColor:[UIColor blackColor].CGColor];
  [[cell.map1 layer] setShadowOpacity:0.8f];
  [[cell.map1 layer] setShadowRadius:20.0f];
  [[cell.map1 layer] setShadowOffset:CGSizeMake(0, 3)];
         // [[cell.map1 layer] setMasksToBounds:NO];
  [[cell.map1 layer] setShouldRasterize:YES];
  [[cell.map1 layer] setCornerRadius:20];
  </code></pre>