2013-03-16 64 views

回答

0

尝试这样我希望it'l帮助你,

UIScrollView *scrollView; 
-(void)animation{  
[UIView animateWithDuration:0.4 delay:5 options:UIViewAnimationCurveLinear 
       animations:^{ 
        [scrollView setContentOffset:CGPointMake(index*320, 0)]; 

       } 
       completion:^(BOOL finished) 
{ 
    index++; 
    [self animation]; 
}]; 
} 
在上面的代码指数

是改变滚动视图偏移一个整数值,并给任何你想要的delay时间。