title: Unwanted bounce of subviews on scrollview
body: <p>I have a scrollview that acts as a banner with 15 image views as subviews (scrolled horizontally). I add the subviews this way:</p>
  
  <pre><code>for (int i = 0; i &lt; featuredImages.count; i++) {
  
      CGRect frame;
      frame.origin.x = self.scrollViewFeaturedImages.frame.size.width * i;
      frame.origin.y = 0;
      frame.size = self.scrollViewFeaturedImages.frame.size;
  
      UIImageView *subview = [[UIImageView alloc] init];
      subview.frame = frame;
      [self.scrollViewFeaturedImages addSubview:subview];
  }
  </code></pre>
  
  <p>And set the contentSize accordingly:</p>
  
  <pre><code>self.scrollViewFeaturedImages.contentSize = CGSizeMake(self.scrollViewFeaturedImages.frame.size.width * featuredImages.count, self.scrollViewFeaturedImages.frame.size.height);
  
  self.scrollViewFeaturedImages.contentInset = UIEdgeInsetsZero;
  </code></pre>
  
  <p>However, when the view appears, the first image seems to be a little off.</p>
  
  <p><img src="https://i.stack.imgur.com/Xj488.png" alt="space between image frame and scroll frame"></p>
  
  <p>When I scroll (horizontally) to the next image, the gap disappears, and when I scroll back to the first image, the frame is corrected already.</p>
  
  <p>I've also disabled BOUNCE but I can drag the image vertically.</p>
  
  <p><img src="https://i.stack.imgur.com/fwuJd.png" alt="enter image description here"></p>
  
  <p>I've also tried this:</p>
  
  <pre><code>self.automaticallyAdjustsScrollViewInsets = NO;
  </code></pre>
  
  <p>with no success. </p>
  
  <p>What's going on?</p>