title: UIScrollview setContentOffset with non linear animation?
body: <p>I am trying to reproduce the smooth animation of a scrollview with paging enabled when you actually scroll to the next page. It seems to be <code>UIViewAnimationCurveEaseInOut</code>, but I need to have a "next page" button and trig the scroll programmatically.</p>
  
  <p>Here is my code : </p>
  
  <pre><code>-(void) scrollToPage:(int)page
  {
      UIScrollView *scrollView = contentView;
      CGPoint offset = CGPointMake(scrollView.bounds.size.width * page, scrollView.contentOffset.y);
      [scrollView setContentOffset:offset animated: YES];     
      [self pageControlUpdate];
  }
  
  -(void) scrollToNextPage 
  {
      [self scrollToPage:(pageControl.currentPage + 1)];
  }
  </code></pre>
  
  <p>I cannot manage to reproduce the smoothness of <code>UIViewAnimationCurveEaseInOut</code>, 
  either with <code>setContentOffset</code>, or with <code>scrollRectToVisible</code>... 
  it goes to the next page with an ugly linear animation</p>
  
  <p>I even tried to animate it manually : </p>
  
  <pre><code>[UIView animateWithDuration:.5 delay:0 options:UIViewAnimationCurveEaseInOut animations:^{
      scrollView.contentOffset = offset;
  } completion:^(BOOL finished) {    } ];
  </code></pre>
  
  <p>where am I wrong ? </p>