1
votes

I have a UIScrollView which I display 5 images within it. After the 5th image I want to go back to the first image. I have checked the apple docs methods and I believe using

- (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView

might be a solution.Is this correct ?

1

1 Answers

0
votes

You can achieve this by using contentOffset property:

[scrollView setContentOffset:CGPointMake(0, 0)];