I have a table view whose gap between cells are two low. how to add gap or space between two table view cells ? I am using xcode to make UItableview.
Asked
Active
Viewed 56 times
1 Answers
0
You have 2 options:
In your tableview cell create transparent UIView, put it on the bottom of the cell, add autolayout constraints and set the height constraint to the height of your gap
Replace numberOfSectionsInTableView method with numberOfRowsInSection so each item in your array will be a section and not a row and then implement the method heightForHeaderInSection and return the value of the gap.
Hope it helps

Ran Hassid
- 2,788
- 1
- 12
- 20