Search code examples
iphoneobjective-cuitableviewcelltableview

Square instead of rounded corners in UITableViewCell grouped style


I want to have square corners for my grouped tableview cells instead of the default rounded corners, and I don't just want to use an image to give that effect. Is it possible?


Solution

  • Most simply, in your tableView:cellForRowAtIndexPath: use

    cell.backgroundView = [[[UIView alloc] initWithFrame:cell.bounds] autorelease];