Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
In my iPhone app, there seems to be a problem when I select a row in a TableView. It goes to the next view, but when you go back to the original one, the originally selected row is still blue. How do you fix this issue?

P.S. I looked through the Address Book application and noticed that the blue faded away when you went back .. how do you do that?
 
In my iPhone app, there seems to be a problem when I select a row in a TableView. It goes to the next view, but when you go back to the original one, the originally selected row is still blue. How do you fix this issue?

P.S. I looked through the Address Book application and noticed that the blue faded away when you went back .. how do you do that?

in my viewWillAppear: I have the following:

Code:
	[mainTableView deselectRowAtIndexPath:[mainTableView indexPathForSelectedRow] animated: NO];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.