title: ios:how to add top and bottom border in tableview?
body: <p>I want table like this image that show top and bottom border with color only
  <a href="https://i.stack.imgur.com/6DWis.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6DWis.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>i have apply this code in viewDidLoad() </p>
  </blockquote>
  
  <pre><code>tblFilter.layer.borderWidth = 0.5
  tblFilter.layer.borderColor = UIColor.white.cgColor
  </code></pre>
  
  <blockquote>
    <p>above code add border at all side that i dont want.
    i want table border in only top or bottom side.
    i want tableview border like given image. see given image.
    please suggest me solution
    Thanks</p>
  </blockquote>