-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
if (scrollView == 《这里换成你的UICollocView子类》) {
//禁止右划
static float newx = 0;
static float oldx = 0;
newx= scrollView.contentOffset.x ;
if (newx < oldx) {
self.collectionView.scrollEnabled = NO;
self.collectionView.scrollEnabled = YES;
}
oldx = newx;
}
}