I am using a UITableView in my app. After scrolling down, if I tap on the status bar time, the table is repositioned to the top. Any idea how this is done and is it possible to intercept the action. TIA, Jim B
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.
A UITableView is an extension of UIScrollView, and UITableViewDelegate is an extension of UIScrollViewDelegate.
A UIScrollViewDelegate can implement this method:
That will allow you to intercept it.
You can also just turn it off with your tableview’s “scrollsToTop” property.
If you just want to know when it happens, you can use this delegate method: