Tableview cell shadow does not render properly Swift
<p>I have been able to add shadows to the bottom of my tableview cells using the following code, however it seems to disappear after 
I scroll down.</p>

<pre><code>cell.layer.shadowColor = UIColor.blackColor().CGColor
cell.layer.shadowOffset = CGSizeMake(0,2)
cell.layer.shadowRadius = 3
cell.layer.shadowOpacity = 0.5
let shadowFrame: CGRect = cell.layer.bounds
let shadowPath: CGPathRef = UIBezierPath(rect: shadowFrame).CGPath
cell.layer.shadowPath = shadowPath
cell.layer.masksToBounds = false
</code></pre>

<p><a href="http://i.stack.imgur.com/42nFR.png" rel="nofollow">enter image description here</a></p>