I followed Luke Redpath's suggestion here - Selected UItableViewCell staying blue when selected - to deselect the row when returning to the original table view, but I can't get it working. In fact the method doesn't get triggered.
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self.tableView deselectRowAtIndexPath:[self.tableView indexPathForSelectedRow] animated:YES];
}
I suspect this is because the class isn't a UITableViewController
, but a UIViewController
with the tableView
as a property connected up to the NIB.
How would I get the same behavior - ie deselecting when returning?