title: Why doesn't UIViewContentModeScaleAspectFit work in a UIImageView inside UIScrollView? See Image attached
body: <p>I can't understand... it was used to work before in other Apps I made with older IOS framework</p>
  
  <p>Check the code below:</p>
  
  <p>If I changed the contentMode to Left it displays the image...</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface ViewController : UIViewController
  {
      IBOutlet UIScrollView* scrBook;
  }
  
  @property (nonatomic, retain) IBOutlet UIScrollView* scrBook;
  
  @end
  
  
  
  @synthesize scrBook;
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
      CGRect frame;
      frame.origin.x = 0;
      frame.origin.y = 0;
      frame.size = self.scrBook.frame.size;
  
      UIImageView *subview = [[UIImageView alloc] initWithFrame:frame];
  
      //subview.contentMode = UIViewContentModeLeft;
      subview.contentMode = UIViewContentModeScaleAspectFit;
  
      UIImage *currentImage = [UIImage alloc];
      currentImage = [UIImage imageNamed:@"model.jpg"];
  
      subview.image = currentImage;
  
      [self.scrBook addSubview:subview];
  
      self.scrBook.contentSize
      = CGSizeMake(self.scrBook.frame.size.width * 1, self.scrBook.frame.size.height);
  }
  </code></pre>
  
  <p>UIViewContentModeLeft:  </p>
  
  <p><img src="https://i.stack.imgur.com/GGLXP.png" alt="UIViewContentModeLeft">  </p>
  
  <p>UIViewContentModeScaleAspectFit:  </p>
  
  <p><img src="https://i.stack.imgur.com/ngxLC.png" alt="UIViewContentModeScaleAspectFit">  </p>
  
  <p>Updates:
  My last attempt was to uddate xcode to 4.5.2 and it doesn't work either, frustrating ...</p>