title: What is the best way to disable horizontal scroll of UIScrollView?
body: <p>In <code>UIScrollView</code>, I have content height and width greater than scrollview's size. So basically it can scroll horizontally and vertically. What I want is to scroll vertically only and I manage horizontally scroll using an <code>UIButton</code> by using below code.</p>
  
  <pre><code> [scrlViewQuestion setContentOffset:CGPointMake(questionWidth, 0) animated:YES];
  </code></pre>
  
  <p>Preventing horizontal scrollview, one can just set scrollview content width lesser than scrollview size but in my case scrollview content width is greater than its size? So what is the best way to solve this?</p>