mikechambers
mikechambers

Reputation: 3089

Set backgroundColor of UITableViewCell in grouped UITableView

Is it possible to set the backgroundColor of a UITableViewCell in a grouped UITableView and maintain the rounded corners of the cells?

All of my attempts results in a loss of the rounded corners.

mike

Upvotes: 5

Views: 12037

Answers (2)

jpm
jpm

Reputation: 16702

I asked the same question a few weeks ago, and you can see the valid answer here:

How to customize the background/border colors of a grouped table view cell?

It is indeed possible and the provided source code works great.

Upvotes: 6

Andrew Grant
Andrew Grant

Reputation: 58786

Unfortunately no. I believe the rounder corners are a background with the cell being transparent at the edges. When you try to use a custom color (or image) it draws over them.

Upvotes: 2

Related Questions