title: Fit image to UIImageVIew in a table view cell
body: <p>I'm trying to get centered and fit and centered an image called from URL  in a UIImageVI in a table view cell with this code:</p>
  
  <pre><code>NSData *imageData= [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:news.image_small]];
  
      cell.imageView.image=[UIImage imageWithData:imageData];
  
      cell.imageView.layer.cornerRadius = 5.0;
  
      cell.imageView.layer.masksToBounds = YES;
  
      cell.imageView.layer.borderColor = [UIColor lightGrayColor].CGColor;
      cell.imageView.layer.borderWidth = 1.0;
  
      cell.imageView.contentMode = UIViewContentModeScaleAspectFit;
  </code></pre>
  
  <p>But image is always greater than UIImageVI size. How can I solve it?</p>
  
  <p>Many thanks</p>
  
  <p>Froi</p>