title: iOS. How do I restrict UIScrollview scrolling to a limited extent?
body: <p>What is the best way to set limits on the left/right scrolling of a UIScrollView. I would have thought this would be easy but all my attempts have been unsuccessful.</p>
  
  <p>So, to be clear, I need a solution that will allow me to programmatically limit the scrolling extent whenever I need to during the use of my app. This will most often be in response to changes in the data being displayed.</p>
  
  <p>Thanks,<br>
  Doug</p>