Reputation: 647
I know that if I create a UITableView
with grouped sections and one row per section, then I will get each row with rounded corners, but I need more than one row per section, with each row still having rounded corners. How do I do that?
Upvotes: 0
Views: 137
Reputation: 4953
you can manipulate the Cell's CALayer property
#import <QuartzCore/QuartzCore.h>
[cell.layer setCornerRadius:5.0f];
[cell.layer setMasksToBounds:YES];
[cell.layer setBorderWidth:2.0f];
Upvotes: 1
Reputation: 200
Create your own custome uitableview cell and make its corner rounded by using its layer property.
Upvotes: 0
Reputation: 4191
In that case you would have to provide a custom UITableViewCell
implementation, that is shaped with round edges. Then in cellForRowAtIndexPath
you will have to init and use your own, customised cell.
This so question discusses how to create a custom UITableViewCell
.
Upvotes: 0