title: How to add shadow only at the bottom of section of UITableView?
body: <p>I have a sectioned <code>UITableView</code> which has a header of height 10 and it has <code>backgroundColor</code> as <code>clearColor</code> just to show the sections more separated. Now I need to add a shadow only at the bottom of each section. I've tried adding shadow to the <code>viewForHeaderInSection</code> method, but the result is very bad. Any tips for achieving this?</p>
  
  <pre><code>func tableView(tableView: UITableView, viewForFooterInSection section: Int) -&gt; UIView? {
      let shadowView = UIView()
  
      shadowView.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.5).CGColor
      shadowView.layer.shadowOffset = CGSizeMake(0.0, 2.0)
      shadowView.layer.shadowOpacity = 1.0
      shadowView.layer.shadowRadius = 0.0
      shadowView.layer.masksToBounds = false
  
      return shadowView
  }
  
  func tableView(tableView: UITableView, heightForFooterInSection section: Int) -&gt; CGFloat {
      return 2
  }
  </code></pre>