How to make an UICollectionView with infinite paging?
问题 I have a UICollectionView with 6 pages, and paging enabled, and a UIPageControl. What I want is, when I came to the last page, if I drag to right, UICollectionView reloads from first page seamlessly. - (void)scrollViewDidEndDecelerating:(UIScrollView *)sender { // The key is repositioning without animation if (collectionView.contentOffset.x == 0) { // user is scrolling to the left from image 1 to image 10. // reposition offset to show image 10 that is on the right in the scroll view