title: How to round the courners of a UIImageView in a tableViewCell
body: <p>I'm trying to have the uiimagview have rounded corners in a tableviewcell with this code:</p>
  
  <pre><code>#import &lt;QuartzCore/QuartzCore.h&gt;    
  (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      HomepwnerItemCell *cell = (HomepwnerItemCell *)[tableView dequeueReusableCellWithIdentifier:@"UITableViewCell"];    
  
      Possession *possession = [self.possessions objectAtIndex:indexPath.row];
      cell.valueLabel.text = [@"$" stringByAppendingString:[[NSNumber numberWithInt:possession.valueInDollars] stringValue]];
      cell.nameLabel.text = possession.possessionName;
  
      UIImage *image = [[ImageCache sharedImageCache] imageForKey:possession.imageKey];      
      UIImageView *roundedImage = [[UIImageView alloc] initWithImage:image];
      roundedImage.layer.masksToBounds = YES;
      roundedImage.layer.cornerRadius = 10.0;
      cell.imageView = roundedImage;
      // cell.imageView.image = [[ImageCache sharedImageCache] imageForKey:possession.imageKey];
      return cell;
  }
  </code></pre>
  
  <p>but the images show up blank in the tableViewCells when I run it.</p>
  
  <p>it works fine if I just do <code>cell.imageView.image = [[ImageCache sharedImageCache] imageForKey:possession.imageKey];</code> (but without the rounded corners)</p>
  
  <p>What am I doing wrong?</p>