I have a view with multiple UIScrollViews on it. Because of this, tapping the header bar does not scroll to the top of any scroller. Is their a way to specify a specific scroller in my view to scroll to the top when the tap occurres?
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.
Go through all your other scroll views, and set their
scrollsToTopproperty to NO. The scrollview you want to scroll up needs to be the only one with this property set to YES.From the UIScrollView.scrollsToTop docs: