title: iOS (iPhone only): Horizontal page scroll, where the scrolling page doesn't take up the whole screen
body: <p>I am trying to achieve horizontal page scrolling effect (partial view, not of the entire screen scrolling), like in the <a href="https://github.com/100grams/HGPageScrollView" rel="nofollow noreferrer">HGPageScrollView</a> component.</p>
  
  <p><img src="https://i.stack.imgur.com/by0IP.png" alt="HGPageScrollView"></p>
  
  <p>I am a fairly novice iOS programmer, and I am having difficulty finding the parts of the code which provide just the horizontal scrolling with the swipe gesture. So I am looking for any help, either some sample code, or pointers to the code in the HGPageScrollView, which provide just the horizontal scrolling functionality (i.e. not even the UIPageControl dots at the bottom, just the vanilla scroll).</p>
  
  <p>I am only looking for an implementation which works in iPhone landscape orientation, if that makes it any easier.</p>
  
  <p>Why I am not using HGPageScrollView:</p>
  
  <ol>
  <li>It is not ARC compliant.</li>
  <li>It does way more than I need it to, I am just looking for the scrolling.</li>
  <li>Consequently, it is proving quite difficult for me to find where to remove all the features I do not need, like clicking on page to change the scrolling mode to full screen (HGPageScrollViewModePage)</li>
  <li>I would like to use this as an incentive to learn more about the components available in cocoa-touch, and roll my own implementation.</li>
  </ol>
  
  <p>I think this <a href="https://stackoverflow.com/questions/13122925/show-uipageviewcontroller-that-doesnt-take-whole-screen">question</a> might be suggesting the solution, but I do not know how to implement it. I guess I don't fully understand it, as there aren't enough details for my novice skills to go on.</p>