title: How to stop a UIScrollView from scrolling when it reaches the bottom
body: <p>I have the following code in place to grab the event when a UIScrollView reaches then end of its content view:</p>
  
  <pre><code>- (void) scrollViewDidEndDecelerating:(UIScrollView *) scrollView
  {
      float currentEndPoint = scrollView.contentOffset.y + scrollView.frame.size.height;
  
      // CGPoint bottomOffset = CGPointMake(0, scrollView.contentSize.height - scrollView.bounds.size.height);
      // [scrollView setContentOffset:bottomOffset animated:NO];
  
      if (currentEndPoint &gt;= scrollView.contentSize.height)
      {
          // We are at the bottom
  </code></pre>
  
  <p>I notice that when I scroll to the bottom it hits it and bounces back up.  </p>
  
  <p>If I add this:</p>
  
  <pre><code>CGPoint bottomOffset = CGPointMake(0, scrollView.contentSize.height - scrollView.bounds.size.height);
  [scrollView setContentOffset:bottomOffset animated:NO];
  </code></pre>
  
  <p>then the scroll goes back to the bottom.</p>
  
  <p>Is there any way for it to stay at the bottom without the "bounce back up" as in once it hits the bottom, stop it from moving.</p>
  
  <p>Thanks.</p>