Ios – Changing corner radius of the cells insie a grouped UITableView

iosobjective-cuitableview

After hours of googling I am wondering if it is possible to change the corner radius of a grouped UITableView.

I tried

hoursTable.layer.cornerRadius = 5.0;

but nothing seems to change.

Best Solution

Make sure clip sub views of table view alon with ur code hoursTable.layer.cornerRadius = 5.0;

by code [hoursTable setClipsToBounds:YES];

hoursTable.layer.cornerRadius = 5.0;
[hoursTable setClipsToBounds:YES];