Iphone – Change grouped UITableview border size

borderiphoneuitableview

I know how to add a border to the tableview using:

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

Setting the border like this results in a square border around the bounds of the tableview not the bounds of the grouped cells in the tableview. Using a similar idea on the cells makes a square border around the bounds of the cell but not the rounded edges.

There doesnt seem to be any way of changing the seperator width on the cells either. Is it possible to make a border around a grouped tableview?

Best Answer

I'm not sure what you're asking. There is a cornerRadius property on CALayer in iOS 3.0 and later.