Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set backgroundColor of UITableViewCell in grouped UITableView

Tags:

cocoa-touch

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

like image 346
mikechambers Avatar asked Feb 13 '09 01:02

mikechambers


2 Answers

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.

like image 172
jpm Avatar answered Nov 23 '22 03:11

jpm


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.

like image 44
Andrew Grant Avatar answered Nov 23 '22 04:11

Andrew Grant