0

I have a TableViewCell which have the border at the surrounding.So what some space at the bottom of each cell.

Here is what I want :

enter image description here

I see a lot of question is work for cell which doesnt have any border.What I want is the space is outside the border at the bottom of every cell.

Now my cell is look like this

enter image description here

So how can I achieve the output that I stated in first picture?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
ken
  • 2,426
  • 5
  • 43
  • 98
  • Possible duplicate of [How to increase the UITableView separator height?](https://stackoverflow.com/questions/3521310/how-to-increase-the-uitableview-separator-height) – Mo Abdul-Hameed Jan 07 '18 at 15:41
  • @MoAbdul-Hameed I want the separator outside the prototype cell ya..cause I have a border surrounding the cell – ken Jan 07 '18 at 15:44

1 Answers1

2

It's easily accomplished with static/dynamic tableView cells & don't give the border to the cell itself but to the subview named TopView

 tableViewCell
    ->ContentView
     ->TopView ---- with border height(static/dynamic)
     ->DownView transparent ---- height(10)

with

 tableView.separatorStyle = .none
Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87