//下面的方法不能用setContentOffset:animated:方法,否則會(huì)調(diào)用scrollViewDidEndScrollingAnimation方法而導(dǎo)致死循環(huán)
scrollView.contentOffset = CGPointMake(kScreenWidth, 0);
//調(diào)用setContentOffset:animated:方法來滾動(dòng)視圖時(shí)會(huì)調(diào)用下面的方法,調(diào)用沒動(dòng)畫的方法setContentOffset:時(shí)不會(huì)調(diào)用下面的方法
-(void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView{
[self scrollViewDidEndDecelerating:scrollView];
}