I have a UITableView and I have set up didSelectRowAtIndexPath, which gets called (I have verified it using NSLog) every time user clicks on a row.
However, I want to reload the same view and change a different data. For example, I am displaying content of a directory on a remote web server, and as soon as user clicks on the row, I want to reload the view and display the contents of the selected directory (row).
I am using this code:
FirstViewController *fvController = [[FirstViewController alloc] initWithNibName:@"MainWindow" bundle:[NSBundle mainBundle]];
fvController.currentDirectory = currentDirectory;
[self.navigationController pushViewController:fvController animated:YES];
[fvController release];
fvController = nil;
However, it doesn't do anything and program keeps running. I assume I am missing a connection in the IB?