1

I have a grouped UITableView with custom cells loaded from nib files. They have the proper 300 px width (for grouped) and appear okay, except for one problem: square corners. The first and the last cell of each group is not appearing to have rounded corners as it should. I have tried setting the backgroundcolor of the tableview to clear, as well as the background of the view. I initialize it in a pretty standard way in my UITableViewController with

 self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];

I put this in the ViewWillAppear method. I've also tried it in the viewDidLoad method and it made no difference. Any help on getting these corners rounded would be much appreciated! Thanks!

mikez
  • 160
  • 1
  • 15
  • have you tried setting the background color of the cells to clear? – bshirley Aug 09 '11 at 22:10
  • just tried it, didnt work. Thanks for the suggestion though – mikez Aug 09 '11 at 22:23
  • i haven't dealt with the problem myself, but i've heard you have to manage custom cells corners yourself (usually w/ 3-4 custom background images - don't know if it's a requirement - just often a common solution) – bshirley Aug 09 '11 at 23:01
  • I'd have to experiment: `cell.backgroundView = [UIImageView …` and `cell.selectedBackgroundView = …` – bshirley Aug 10 '11 at 12:10
  • 1
    See if this helps http://stackoverflow.com/questions/400965/how-to-customize-the-background-border-colors-of-a-grouped-table-view – bshirley Aug 10 '11 at 12:12

0 Answers0