title: UITableViewCell background (pattern)
body: <p>I am using a custom uitableviewcell and am trying to recreate a loose-leaf piece of paper for the background. Since each cell can grow depending on the amount of text, I need to use a pattern for the background of each cell. But I am having problems with these black lines and it's driving me mad!</p>
  
  <p>I have made sure the tableview is not opaque as well as the cell.</p>
  
  <p>If I set the cell backgroundView's backgroundColor = [UIColor redColor], it displays the red background with no black lines. Any ideas of what could be going on here?</p>
  
  <p>Done in my view controller:</p>
  
  <pre><code> cell.backgroundView = [[[UIView alloc] init] autorelease];
  
  bgImage = [UIImage imageNamed:@"blogs-cell-middle.png"];
  
  ((UIView *)cell.backgroundView).backgroundColor = [UIColor colorWithPatternImage:bgImage];
  </code></pre>
  
  <p><a href="http://www.freeimagehosting.net/uploads/91a1a9bfea.png" rel="nofollow noreferrer">http://www.freeimagehosting.net/uploads/91a1a9bfea.png</a></p>
  
  <p>Notice the black line down the far left side, on the right side near the edge, and the double black lines on the bottom. </p>