How can I unselect a UITableViewCell when UITableView has scrolled?
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.
I would imagine you could use the following answer:
Detecting UITableView scrolling
Make sure your .h file looks similar to the following:
Then place the following in your .m to detect when scrolling occurs and deselect whatever cell is selected.
The UIScrollViewDelegate in those funny brackets at the end means it implements that protocol. Meaning you have access to functions like scrollViewDidScroll. The top function up there overrides it to do what you want. You wouldn’t happen to have multi-select on, would you?