How to implement pull left to fresh while pulling the last page of a scrollview? i want mimic the popular pulling down to refresh.
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.
Pull down to refresh was done (wrongly) adding a subview to a table view, and monitoring the scroll content offset of the scrollview (table view extends scrollview). I say wrongly, because you can add a tableHeader to do the same thing instead of adding it as a subview.
You need to do it by adding other subviews to your scrollview and then monitoring the scroll offset, the same as what I’ve just mentioned above.
Look at the methods of UIScrollViewDelegate to see all the different callbacks you get from UIScrollView interaction. It’s very versatile.