0

I have a scroll view set up with paging. How would i programmatically jump to a specific page in the scroll view. The content size is self.scrollView.contentSize = CGSizeMake(1280, 568);. Thanks.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
user3186310
  • 149
  • 2
  • 15

1 Answers1

2

You can use – setContentOffset:animated:. You would do your own math to decide what a "page" is but you would probably base it off the bounds of the scroll view.

drewag
  • 93,393
  • 28
  • 139
  • 128