LilMoke
LilMoke

Reputation: 3444

Make the cells fill the width of the section of UITableView

I have a UITableView that is grouped with many sections. Each section has 1 to n cells. I am trying to have the cells take the entire width, but cannot figure out how to do it. I have searched but cannot find any samples or information of how to so it.

I have put an example screenshot below.

I have this:

enter image description here

And I am trying to achieve this:

enter image description here

I will be making the cell a square box with a gradient and styling the headers, but I cannot figure out how to make the cell fill the width of the screen.

Thanks for the help.

Upvotes: 0

Views: 576

Answers (1)

bibo bode
bibo bode

Reputation: 1150

If you want to change the width of a cell, you could simply change the width of the table, or change the width of the contentView in the cell.

The answer to this question details how to do the latter.

Upvotes: 1

Related Questions