title: UITableViewCell with large image isn't fluid
body: <p>I have a table view, and i want to do the classic list with images and text.</p>
  
  <p>This is my cellForRowAtIndexPath. All works fine without the image elaboration, but with this is very slow to present the viewcontroller, and the scroll isn't fluid.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  
      static NSString *simpleTableIdentifier = @"SimpleTableItem";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
  
      NSDictionary* element = [dataSource objectAtIndex:indexPath.row];
  
      if (cell == nil) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
      }
  
  
      NSString* imageUri = [element valueForKey:@"uri"];
      UIImage* image = [UIImage imageWithContentsOfFile:imageUri];
      CGFloat wImg = image.size.width * cell.frame.size.height / image.size.height;
  
      CGSize newSize = CGSizeMake(wImg, cell.frame.size.height);
      UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0);
      [image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
      UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
  
  
  
      cell.textLabel.text = [ element valueForKey:@"text"];
      cell.imageView.image = newImage;
  
      return cell;
  
  }
  </code></pre>
  
  <p>I have big images (iphone photos), what is the better way to do this?</p>