title: iPhone: image in table cell - wrong position & not scaled correctly in iPhone 3.0
body: <p>I have a custom table cell in an iPhone 3.x app to show basketball player data, including a picture.  Here's my code from the table controller:</p>
  
  <pre><code>UIImageView *theImage = (UIImageView *) [cell viewWithTag:0];
  
  theImage.image = [manager getSmallImageForPlayer: data.number];         
  theImage.frame = CGRectMake(14, 0, 30, 44);
  theImage.clipsToBounds = YES;
  theImage.contentMode = UIViewContentModeScaleAspectFit;
  theImage.autoresizingMask = UIViewAutoresizingFlexibleHeight &amp;&amp; UIViewAutoresizingFlexibleWidth;
  theImage.autoresizesSubviews = YES;
  </code></pre>
  
  <p>Here's what it looks like in the iPhone SDK 3.0 simulator:</p>
  
  <p><a href="http://img96.imageshack.us/img96/9550/imageintablecell30.png" rel="nofollow noreferrer">3.0 simulator screenshot http://img96.imageshack.us/img96/9550/imageintablecell30.png</a></p>
  
  <p>Here's what it looks like in the iPhone SDK 3.1.3 simulator:</p>
  
  <p><a href="http://img185.imageshack.us/img185/9269/imageintablecell313.png" rel="nofollow noreferrer">3.1.3 simulator screenshot http://img185.imageshack.us/img185/9269/imageintablecell313.png</a></p>
  
  <p>So I have two problems:</p>
  
  <ol>
  <li>In both versions, the image view starts at position (0,0) in the table cell, even though I set the frame to start at (14,0).</li>
  <li>In the 3.0 simulator (and 3.0 device), the image is not shrunk down correctly, even though I set the image view content mode to "UIViewContentModeScaleAspectFit".  But the same code works fine in the 3.1.3 simulator / device.</li>
  </ol>
  
  <p>Who can help me with either of these two problems?</p>