Crash on selecting an UITableViewCell insted of display a new view.
I've created a TabBar application with two tabs.
The second tab is a NavigationController that display an UITableView correctly.
When I select a cell of this TableView I would display another UITableView.
I wrote this:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
TipoPartitaController *menuImp;
if (indexPath.row == 0){
//l'utente ha cliccato sull'elemento iPhone, quindi carichiamo la vista relativa
menuImp = [[TipoPartitaController alloc] initWithNibName:@"TipoPartita" bundle:[NSBundle mainBundle]];
} else {
//menuImp = [[OtherDetailController alloc] initWithNibName:@"OtherDetail" bundle:[NSBundle mainBundle]];
}
//Facciamo visualizzare la vista con i dettagli
[self.navigationController pushViewController:menuImp animated:YES];
//rilasciamo il controller
[menuImp release];
menuImp = nil;
}
where TipoPartitaController is the UITableViewController that I want to display.
When I select the first cell the method above is called (i can debug it) but then the app crash and in the console there's no error reported.
What's wrong?
Thank you very much.
Daniele.
Message was edited by: zoodany
Message was edited by: zoodany
MacBook, Mac OS X (10.6.3)