When I push a view after a user has selected a UITableView row, the row gets a blue highlight, and then the new view appears. That\'s fine. But when I go \'back\' the row is
If your controller is based on UITableViewController
, you get this feature for free. But I often ended up using UIViewController
with no. of other controls in addition to UITableView
, in that case, you should override your viewWillAppear
to
-(void) viewWillAppear:(BOOL)animated{
// Unselect the selected row if any
NSIndexPath* selection = [devListTableview indexPathForSelectedRow];
if (selection){
[tableview deselectRowAtIndexPath:selection animated:YES];
}
}