1

I have a scrollview with many items on it . i would like to scroll down to a point and save that point as my new (0,0) point (i.e. all other items attached to the scroll view will see that point as a (0,0) point . Can i do so ?

Alex
  • 9,669
  • 27
  • 87
  • 161

1 Answers1

3

Use contentInset (see What's the UIScrollView contentInset property for?). Additionally, you might want to move the view that contains your other items within the UIScrollView to the new zero point (by setting its frame), but I don't think that's what you're looking for.

The contentOffset is relevant, too, if you need to scroll to that point programmatically.

Community
  • 1
  • 1
Dan Rosenstark
  • 64,546
  • 54
  • 267
  • 405