title: Controling the animated scroll rate in a UIScrollview - IOS development
body: <p>I've implemented some code, which is working nicely, to scroll a UIScrollview automatically based on a timer being triggered.</p>
  
  <p>Here  it is:</p>
  
  <pre><code>....
  CGPoint offset;
  ....
  offset = scroller.contentOffset;
  ....
  - (void) scrollWords: (NSTimer *) theTimer
  {
  offset.y = offset.y+300;
  [UIScrollView beginAnimations:@"scrollAnimation" context:nil];
  [UIScrollView setAnimationDuration:50.0f];
  [scroller  setContentOffset:offset];
  [UIScrollView commitAnimations];
  
  }
  </code></pre>
  
  <p>However, I've noticed that the while the scrolling is happening, the scroll rate varies; half way through it scrolls 2 or 3 lines of text per second, but at the start and finish it's much slower, perhaps only 0.5 lines per second. Is there any way of controlling the scroll rate?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Paul.</p>