Reputation: 38805
I have a table view in my program, (1)when I click on a row, (2)it will be changed to a view, (3)If I click back button, it will go back to the table list.
My problem is when I go back to the table list and the highlighted color still keep on the row, how can I erase the highlighted color after clicked on the row?
Thanks
(1)
(2)
(3)
Upvotes: 1
Views: 89
Reputation: 4388
You can do this in you tableView:didSelectRowAtIndexPath:
[tableView deselectRowAtIndexPath:indexPath animated:NO];
Upvotes: 1