How to remove UITableViewCell background for grouped UITableView

Grouped UITableView cells will display with white background and gray border by default. When you want to insert controls like buttons in a cell it’s preferable to remove that background and border. Here’s how to do it:

cell.backgroundColor = [UIColor clearColor];
cell.backgroundView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];