BeachRunnerFred
BeachRunnerFred

Reputation: 18578

How do I change the color of a UITableView border?

I have a UITableView in a UISplitViewController and I have a custom header cell at the top of that table view. The custom header view has a dark grey background image set in it, but the problem is the left side of the header cell shows a light grey border (circled in red in the image below)...

enter image description here

How can I change that color or get rid of that border?

Thanks so much in advance for your wisdom!

Upvotes: 1

Views: 4821

Answers (1)

Saiful
Saiful

Reputation: 1911

Import #import "QuartzCore/QuartzCore.h" In ViewDidLoad use,

tableView.layer.borderWidth = 3.0;
tableView.layer.borderColor = [UIColor redColor].CGColor;

Check this too.

Upvotes: 7

Related Questions