tom
tom

Reputation: 14513

how to set the corner radius of the cells on UITableViewStyleGrouped?

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

Answers (1)

MobileApp Developer
MobileApp Developer

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

Related Questions