[iPhone SDK] Selected Rows in TableViews

Discussion in 'iOS Programming' started by Duke Leto, Jul 4, 2008.

  1. macrumors regular

    Mar 17, 2008
    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?
  2. macrumors member

    Oct 26, 2007
    [[NSLocation alloc] initWithCity: Chicago]
    in my viewWillAppear: I have the following:

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

Share This Page