高手superior

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
CGPoint offset = self.collectionView.contentOffset;
 (self.collectionView.contentOffset.y > 0) ? offset.y-- : offset.y++; 
[self.collectionView setContentOffset:offset animated:NO];

关键是x或者y的值必须要改变了

 

posted on 2015-08-12 12:11  高手superior  阅读(9814)  评论(0编辑  收藏  举报