PDA

View Full Version : [iPhone SDK] Selected Rows in TableViews




Duke Leto
Jul 4, 2008, 09:36 AM
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?



iphoneGuy
Jul 4, 2008, 09:43 AM
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:


[mainTableView deselectRowAtIndexPath:[mainTableView indexPathForSelectedRow] animated: NO];