-(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;
}
}