title: Zooming UIImageView inside UIScrollView with autolayout
body: <p>I have a UIImageView embedded inside a UIScrollView, prior to iOS 6 and autolayout I used the following snippet inside the controller's viedDidLoad method to display a scrollable and zoomable image.</p>
  
  <pre><code>self.scrollView.contentSize = self.imageView.image.size;
  self.imageView.frame = CGRectMake(0, 0, self.imageView.image.size.width, self.imageView.image.size.height);
  </code></pre>
  
  <p>But now the constraints set in the storyboard are used instead. I've found this question <a href="https://stackoverflow.com/questions/12619786/embed-imageview-in-scrollview-with-auto-layout-on-ios-6">Embed ImageView in ScrollView with Auto Layout on iOS 6</a> and some others here in SO stating that constraints are loaded/enforced after viewDidLoad, and that moving my previous snippet to viewDidAppear would fix this issue but zooming does not work properly and it seems that the sizes of the scrollView and the imageView are reset to the storyboard's constraint after a pinch-to-zoom gesture.</p>
  
  <p>I'm just guessing, but I think maybe if there's some way to override the scrollView's and imageView's vertical and horizontal space constraints in code that might work.</p>
  
  <p>Anyone else having this issues?</p>