I’m using a UITableViewController subclass with clearsSelectionOnViewWillAppear set to YES (the default value).
How do I make changes to a deselected cell when it is automatically deselected on viewWillAppear:?
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.
tableView:didDeselectRowAtIndexPath:is not called when a cell is deselected automatically onviewWillAppear:in aUITableViewControllersubclass.Use the following code to make changes to the deselected in this case:
In general, if you use
deselectRowAtIndexPath:animated:,tableView:didDeselectRowAtIndexPath:will not be called.