[UITableViewController loadView] loaded the "PersonnalDetails" nib but didn't get a UITableView.
- by tak
I am trying to load a new view with the following code
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
PersonnelDetails *detailViewController = [[PersonnelDetails alloc] initWithNibName:@"PersonnelDetails" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
}
inhertance :- PersonnelDetails inherits UITableViewController
but i am getting an exception :
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "PersonnalDetails" nib but didn't get a UITableView.'
even though i have a UITableView in the PersonnalDetails nib and also i have connected the view outlet of PersonnelDetails(viewController) to the UITableView.
what can be the posible cause?