title: get height of a content view subview in a scroll view
body: <p>I'm trying to understand how scroll views works with autolayout.
  I have understood that there are 2 ways of getting it to work, the pure version or the mixed version. I'm trying the mixed version, following the recepi on this page: <a href="https://developer.apple.com/library/ios/technotes/tn2154/_index.html" rel="nofollow">https://developer.apple.com/library/ios/technotes/tn2154/_index.html</a></p>
  
  <p>I have a scroll view with a contentView as the first subview. According to the apple recepi i need to do this:</p>
  
  <pre><code>[scrollView setContentSize:CGMakeSize(contentWidth,contentHeight)];
  </code></pre>
  
  <p>I have set my contentView to be 600 pt high, but when i run the app it just logs the screen size and not the actual size of the contentView.</p>
  
  <pre><code>NSLog(@"%@", NSStringFromCGSize(self.scrollViewContent.bounds.size));
  </code></pre>
  
  <p>This logs {320, 568}</p>
  
  <p>What am i doing wrong?</p>