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 ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.