Reputation: 14513
I have a tableview, which has many sections. each section has just one cell. I wonder if I can set the cell's corner radius to what I wanted. Is there a way to do that?
Upvotes: 2
Views: 2068
Reputation: 382
UITableViewCell.layer is kind of class CALayer and CALayer class have a property called cornerRadius. so you set the cell's corner radius as fallows:
[cell.layer setCornerRadius:3.0];
Upvotes: 3