iphone - Refresh NSTableView After Click - Not Refreshing -


I have an UITWV app using both the icons and the disclosure button. I have a line with the "selected" I want to update the icon, and I want to update the already selected row with the "unselected" icon. I have the code, but when I click on the rows, it sets both the rows in the "selected" state, though through debugging I can see that my state variable is being set to the right line if I If I click on the rows, I can sometimes get to show the "unselected" state. I suspect that this is a fresh issue, but I have shown the set nation's display pattern on the cells and on the table, but with no luck. Anyone walked before this? BTW is in this simulator (2.2.1) - it has not tried on the device.

Here is the code:

  - (zero) tableview: (UITableView *) tableView SelectionRowAtIndexPath: (NSIndexPath *) index {int newRow = [indexPath line]; Int OldRo = [Last Index Line]; If (newRow! = Old RO) {[[Table View cellferooutindexpath: indexpath] set image: [UIImage image nominated: @ "isited page"]]; C_oListPtr.c_sCurItem = [[tableView cellforroorendexpath: indexpath] text]; [[TablesView CellForUreoutExpath: The Last Olympics] Set Image: [UIImage Image Named: @ "NonCaptated Page"]]; [Previous indexpath release]; Previous indexpath = indexpath; [[Tablesview cellarrowoutindexpath: last indepapeth] Saturns display]; [[TablesView CellForUreoutExpath: IndexPath] Saturns Display]; [Tableview setsNewsDisplay]; } [Select Table View: Rooted Approximate: IndexPath Animated: Yes]; }  

Thanks - Mike

Tableview reloaded data] ?


Comments