Thursday 15 January 2015

ios - Grouped UITableView corner radius default value -


I am customizing the background of some UITableViewCell and I want to set the radius to the same corner As they are by default when the style of the table view is grouped, [self.tableView.layer cornerRadius] gives me 0, can someone tell me what the default value is or How do I get it?

First, you need to import Quartzcore:

# Import & lt; Quartzcore / quartz coir H & gt; From

, whatever you need to do is round the corners of

  myTableView.layer.cornerRadius = 5; If the  OR   CellForRowAtIndexPath: (NSIndexPath *) index   

for a single cell in cellphone detection API:

  cell .layer.cornerRadius = 5;    

No comments:

Post a Comment