title: Embed ImageView in ScrollView with Auto Layout on iOS 6
body: <p>I am trying to make very simple element with new iOS 6 SDK with auto layout.
  I have an ImageView and Embed it in ScrollView. (everything build with Interface Builder). The .png file is set and imageView mode is set to "Top Left".</p>
  
  <p>Implementation:</p>
  
  <pre><code>#import "ImaginariumViewController.h"
  
  @interface ImaginariumViewController ()
  @property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
  @property (weak, nonatomic) IBOutlet UIImageView *imageView;
  @end
  
  @implementation ImaginariumViewController
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      self.scrollView.contentSize = self.imageView.image.size;
      self.imageView.frame =
      CGRectMake(0, 0, self.imageView.image.size.width, self.imageView.image.size.height);
  }
  
  @end
  </code></pre>
  
  <p>When I run the app, the image is not scrolled. Doing all the same with auto layout turned off (with struts and springs), I have working scrolling.
  I guess the problem is with constraints. Could anybody help me, please?</p>