title: Resize UIImageView according to image size?
body: <p>In IB we can use <code>command =</code> to resize the <code>UIImageView</code> to the original size of image.
  I need to do it programmatically.I used <code>contentMode</code> but it resize image itself to match <code>UIImageView</code> size set in IB.
  <strong>Edit:</strong>  I've tried </p>
  
  <pre><code>UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:@"ScanToVerifyCell" forIndexPath:indexPath];
              STOScanToVerifyCell * verifyCell = (STOScanToVerifyCell *)cell;
              [verifyCell.scanStatusImage setHidden:NO];
              [verifyCell.scanStatusImage setImage:[UIImage imageNamed:@"point.png"]];
              [verifyCell.scanStatusImage sizeToFit];
  </code></pre>
  
  <p>But it is not working.What i'm doing wring?</p>