Charles Yeung
Charles Yeung

Reputation: 38805

Highlighted color keep on the table cell when I click back to the table in Objective-c

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)

(1)

(2)

(2)

(3)

(3)

Upvotes: 1

Views: 89

Answers (1)

dredful
dredful

Reputation: 4388

You can do this in you tableView:didSelectRowAtIndexPath:

[tableView deselectRowAtIndexPath:indexPath animated:NO];

Upvotes: 1

Related Questions