ios scrollview正在滚动时 停止滚动 代码实现
CGPoint offset = self.collectionView.contentOffset; (self.collectionView.contentOffset.y > 0) ? offset.y-- : offset.y++; [self.collectionView setContentOffset:offset animated:NO];
关键是x或者y的值必须要改变了
ios scrollview正在滚动时 停止滚动 代码实现CGPoint offset = self.collectionView.contentOffset; (self.collectionView.contentOffset.y > 0) ? offset.y-- : offset.y++; [self.collectionView setContentOffset:offset animated:NO]; 关键是x或者y的值必须要改变了
|