次のように設定pagingEnabled = NO
して上書きする必要があることが判明しました。(void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView
- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView
{
if (self.lastQuestionOffset > scrollView.contentOffset.x)
self.currentPage = MAX(self.currentPage - 1, 0);
else if (self.lastQuestionOffset < scrollView.contentOffset.x)
self.currentPage = MIN(self.currentPage + 1, 2);
float questionOffset = 290.0 * self.currentPage;
self.lastQuestionOffset = questionOffset;
[self.collectionView setContentOffset:CGPointMake(questionOffset, 0) animated:YES];
}
この回答は役に立ちました:
ページ幅が異なるUIScrollViewのページング