views:

4888

answers:

1

I've read (and used) the code here which illustrates how to change the background color and border color of a UITableViewCell in grouped mode on the iPhone. I'm writing an app now which has a non-grouped UITableView and I need to change the border color of the cells. I know that I can modify the code and create a new background view and apply it, but is it necessary?

Is there an easy way to specify the border color of a UITableViewCell if it is a non-grouped style?

+12  A: 

By "border color" in a plain table view, do you mean the separator lines between the cells (default color gray)? You can customize this color for the whole table view via

tableView.separatorColor = [UIColor blueColor];

See the UITableView reference.

Daniel Rinser
Thanks. I just couldn't find it.
marcc
This also works for the borders of cells in a grouped Table
Felix