-1

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 ?

Mohd Prophet
  • 1,511
  • 10
  • 17
DrPatience
  • 1,736
  • 2
  • 15
  • 33

1 Answers1

0

You can achieve this by using contentOffset property:

[scrollView setContentOffset:CGPointMake(0, 0)];
Mohd Prophet
  • 1,511
  • 10
  • 17