views:

23

answers:

0

Hi Guys,

I've searched google now for nearly an hour to find a solution. I'M pretty new to all this Iphone App stuff.

What I try to do is, I have an UITableView and when I click at one of the cells, a Detailview should show up with additional information to the first cell I've clicked on.

I've already figured out how to push the Detailview and it gets loaded as it's supposed to do.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

RootViewController *AEViewController = [[RootViewController alloc] initWithNibName:@"AEVController" bundle:nil];
[self.navigationController pushViewController:AEViewController animated:YES];
[AEViewController release];
AEViewController = nil;

}

The problem is that when the Detailview gets pushed, the class of the Rootview gets executed and not the class of the Detailview.

Any suggestions why this happens?

Thank you guys!