I animate the scroll with scrollRectToVisible:animated:
But scrollViewDidEndDecelerating is not getting called.
Is there a way to force the function to be called?
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.
scrollViewDidEndDeceleratingwon’t be called forscrollRectToVisibleorsetContentOffset(i.e, scrolling programmatically). If you notice the declaration of this method in the header file it clearly mentions that it’s “called on finger up as we are moving”.Now, to address your issue,
scrollViewDidEndScrollingAnimationdelegate will be called (forsetContentOffsetandscrollRectToVisible), which you can use.