Apoorva Verma
Apoorva Verma

Reputation: 135

iOS: reducing space between two cells : UITableView

I have multiple cells (prototype cells) in my UITableViewController. I want to reduce the space between the subsequent cells to almost negligible, so that it appears like a continuous list of items. How can this be done? Please suggest the best way.

Upvotes: 0

Views: 690

Answers (2)

nayem
nayem

Reputation: 7605

Probably you meant the separator between cells. It's the property of Table View.

You can do this from your code:

tableView.separatorStyle = UITableViewCellSeparatorStyle.None

Or you can set this property in the Interface Builder too: Table View Separator Style

Upvotes: 1

Durdu
Durdu

Reputation: 4859

As @Shubham pointed out... table view cell don't have space between them.

enter image description here

Maybe you have a problem caused by other things such as separators (you can see it in the image as well), section header, subviews of the cell.

Upvotes: 1

Related Questions