Como fazer um UICollectionView com paginação infinita?

Eu tenho um UICollectionView com 6 páginas e paginação habilitada e um UIPageControl. O que eu quero é, quando eu cheguei na última página, se eu arrastar para a direita, o UICollectionView é recarregado da primeira página sem problemas.

- (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
    [collectionView scrollRectToVisible:CGRectMake(collectionView.frame.size.width*(pageControl.currentPage-1),0,collectionView.frame.size.width,collectionView.frame.size.height) animated:NO];
}
else if (collectionView.contentOffset.x == 1600) {
    // user is scrolling to the right from image 10 to image 1.
    // reposition offset to show image 1 that is on the left in the scroll view
    [collectionView scrollRectToVisible:CGRectMake(0,0,collectionView.frame.size.width,collectionView.frame.size.height) animated:NO];

}
pageControlUsed = NO;

}

Não funciona como eu quero. O que eu posso fazer?

questionAnswers(3)

yourAnswerToTheQuestion