title: iOS - UIScrollView is not working (it doesn't scroll at all - the image stays fixed)
body: <p>I would like to display an image (width: 320 pixels, height: 1250 pixels) in an image view.</p>
  
  <p>When I compile the application I get no scrolling at all. The view stays fixed.</p>
  
  <p>What I did:</p>
  
  <ol>
  <li>Added an <code>UIScrollView</code> via <a href="http://en.wikipedia.org/wiki/Interface_Builder" rel="noreferrer">Interface Builder</a> to my view.</li>
  <li>Added an <code>UIImageView</code> via Interface Builder to my view.</li>
  <li>Verified that <code>UIImageView</code> is below <code>UIScrollView</code> in Interface Builder.</li>
  <li>Set the size of the <code>UIScrollView</code> with <code>ViewDidLoad</code>.</li>
  </ol>
  
  <p>How do I do this?</p>
  
  <p>Code:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      scrollView.contentSize = CGSizeMake(320, 1250);
  }
  </code></pre>
  
  <p>Screenshots:</p>
  
  <p><code>ImageView</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/Wwb3z.png" alt="Enter image description here"></p>
  
  <p><code>ScrollView</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/wQ5Hj.png" alt="Enter image description here">
  <img src="https://i.stack.imgur.com/88pkx.png" alt="Enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/V8idv.png" alt="Enter image description here"></p>