title: How to center content in a UIScrollView with contentOffset
body: <p>This should be a VERY easy problem but I'm having trouble getting the desired result. I have horizontally scrolling UIScrollView with a width of 320. The width of its content is 5000. I'm trying to center the content with:</p>
  
  <pre><code>// 'self' is the UIScrollView
  CGFloat newContentOffsetX = (self.width/2) + (self.contentSize.width/2);
  self.contentOffset = CGPointMake(newContentOffsetX, 0);
  </code></pre>
  
  <p>I don't understand why this is not centering the content. Can you see something wrong with the calculations?</p>