1

I have a ViewController with a UITableView. I select a cell to move to another ViewController but when I'm popping back using [self.navigationController popToRootViewControllerAnimated:NO]; The cell that I selected is still highlighted with blue. The only way to unhighlight it is to select another cell. How can I clear the highlighted blue on selection?

1 Answer 1

2

Use deselectRowAtIndexPath: method in your didSelectrowAtIndexPath or so.

 [tableView deselectRowAtIndexPath:indexPath animated:YES]; 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.