title: What UIScrollview delegate method that will called after programmatic-generated scroll finishes
body: <p>i need some help, i really need to know what UIScrollView delegate method that will called after i do some programmatic-generated scroll. From <a href="https://stackoverflow.com/questions/1969256/uiscroll-view-delegate-not-calling-scrollviewdidendscrollinganimation">this</a> link, i know that I have to try to implement </p>
  
  <p><code>
   - (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView</code></p>
  
  <p>but after i implement it, from NSlog, i know that this method did not called when the scrollview already finish, the nslog show that after called this delegate method, the app called </p>
  
  <pre><code>- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
  </code></pre>
  
  <p>and then called scrollViewDidEndScrollingAnimation again, back to scrollViewDidScroll in many times, until the scroll really stop, i need to set a BOOL value into True before do programmatic-generated scroll, and need to False it after the scroll really stop. Can somebody help me to figure out this problem?</p>
  
  <p>this is my sample code, to do this : </p>
  
  <pre><code>BOOL isScroll;
  
  - (void)viewDidLoad {
      isScroll = YES;
      [self generateScrollProgrammatically];
  }
  
  - (void) generateScrollProgrammatically{
      //i do some code for scrolling uiscrollview programmatically
  }
  
  - (void)scrollViewDidScroll:(UIScrollView *)scrollView{
      NSLog(@"scrollViewDidScroll");
  
      if (isScroll){
          //do something
      }
  
  }
  
  - (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView{
      NSLog(@"scrollViewDidEndScrollingAnimation");
  }
  </code></pre>
  
  <p>here the nslog that i was told : </p>
  
  <pre><code>2012-05-31 09:58:10.583 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.584 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.595 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.596 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.597 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.598 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.611 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.615 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.616 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.617 myApps[1203:fb03] scrollViewDidEndScrollingAnimation
  2012-05-31 09:58:10.631 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.632 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.633 myApps[1203:fb03] scrollViewDidEndScrollingAnimation
  2012-05-31 09:58:10.634 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.635 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.636 myApps[1203:fb03] scrollViewDidEndScrollingAnimation
  2012-05-31 09:58:10.636 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.637 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.638 myApps[1203:fb03] scrollViewDidEndScrollingAnimation
  2012-05-31 09:58:10.640 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.642 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.644 myApps[1203:fb03] scrollViewDidEndScrollingAnimation
  2012-05-31 09:58:10.644 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.645 myApps[1203:fb03] scrollViewDidScroll
  2012-05-31 09:58:10.646 myApps[1203:fb03] scrollViewDidEndScrollingAnimation
  </code></pre>