Normally a selected row in a UITableView
gets deselected with an animation when the user pops back from the detail view.
However, in my case where I have a
If table view selections are not being cleared in a subclass of UITableViewController
, despite the fact that clearsSelectionOnViewWillAppear
is set to true, make sure to call the superclass version of [UIViewController viewWillAppear:animated]
if you override that method.
If you fail to call the super version of that method, the value of clearsSelectionOnViewWillAppear
will have no effect as the work of clearing the table view selection is actually performed in UITableViewController
's implementation of viewWillAppear
.
If your view controller does not inherit from UITableViewController
you will need to clear the selection manually in viewWillAppear
.