title: Consistent background for UITableViewCell
body: <p>I've applied a semi-transparent image to my UITableViewCell.contentView. Whenever I add my custom accessoryView, it doesn't have the right background as shown here:</p>
  
  <p><img src="https://i.stack.imgur.com/689cP.png" alt="enter image description here"></p>
  
  <p>This is the relevant code:</p>
  
  <pre><code>UITableViewCell *tableViewCell = [[UITableViewCell alloc] init];
  [tableViewCell.contentView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"cell-bg.png"]]];
  //[tableViewCell.backgroundView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"cell-bg.png"]]];
  tableViewCell.textLabel.text = @"Test";
  
  UIButton *accessoryButton = [UIButton buttonWithType:UIButtonTypeCustom];
  [accessoryButton setBackgroundImage:[UIImage imageNamed:@"arrow.png"] forState:UIControlStateNormal];
  [accessoryButton setFrame:CGRectMake(0, 0, 34, 34)];
  tableViewCell.accessoryView = accessoryButton;
  </code></pre>
  
  <p>I've also tried adding the background image to <code>backgroundView</code> instead of <code>contentView</code>, but it doesn't show up at all. How to solve this? Thanks</p>