I want to do some things when user finished vertical scrolling of table view. Does any body know how to determine that period?
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.
You need your view controller to become a delegate of UIScrollView:
UIScrollViewDelegateIn your delegate you can implement the following methods to help determine the end state:
There are also two properties of UIScrollView that can help:
Just note that there are several end ‘possibilities’ for the scroll view. If there is no deceleration,
scrollViewDidEndDeceleratingwon’t be called, onlyscrollViewDidEndDragging. However, if there is deceleration, both will be called. You can use thedeceleratevar inscrollViewDidEndDraggingto help determine when to execute your code. For this reason, it’s usually a good idea to have a separate method that’s called by these delegate methods.