title: Adding Shadows to UIViews
body: <p>I have been scouring on and off for a few days now how to properly add a drop shadow to a UIView. There are many resources on the topic, but none so far have worked for me. The shadow does not appear.</p>
  
  <pre><code> cell.buttonView.layer.shadowColor = UIColor.blackColor().CGColor
   cell.buttonView.layer.shadowOffset = CGSizeMake(4, 4)
   cell.buttonView.layer.shadowRadius = 5
   cell.buttonView.layer.shadowOpacity = 1.0
   cell.buttonView.layer.masksToBounds = false
  </code></pre>
  
  <p>Altering masksToBounds was because the absence of that step in another person's code seemed to be the reason as to why they could not get their shadow to appear. </p>