title: Resize UIView and update content with Autolayout
body: <p>This is the current setup I'm using. In my storyboard I have a <code>ViewController</code> with a <code>UIScrollVIew</code> that is position and sized with <code>Autolayout</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/RYHEt.png" alt="enter image description here"></p>
  
  <p>The content of the scrollView is added programatically based on <code>UIView</code> built in interface builder. It has several labels, all of them using autolayout: leading and trailing to superview, and vertical spaces.
  <img src="https://i.stack.imgur.com/17vj3.png" alt="enter image description here"></p>
  
  <p>The scrollview gets resized accordingly to the screen size(iPhone / iPad), but the contentView's width is always the one specified in interface builder. I've tried setting contentview's frame width to match the scrollview frame width, and that changes it's frame but the labels width stay exactly the same. Also when I start to scroll it reverts my frame  change. Any ideas how I can make the content's width match the <code>scrollview's</code> and update it's content accordingly?</p>
  
  <p>I'm also adding constanints from the contentView to the <code>scrollView</code> programatically:</p>
  
  <pre><code>[scrollView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[scrollContent]|" options:0 metrics: 0 views:viewsDictionary]];
  [scrollView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[scrollContent]|" options:0 metrics: 0 views:viewsDictionary]];
  </code></pre>