Hi
I am follwing a tutorial from a book and there the delegate and datasource are separated from the controller (MyViewController.m)
[self setDataSource:[[MyViewDataSource alloc]
[self setDelegate:[[MyViewDelegate alloc]
for understanding, I now want to pop a controller from the delegate class (MyViewDelegate.m)
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
2ndViewController *controller = [[2ndViewController alloc]];
[[self navController] pushViewController:controller animated:YES];
of course this will not work since the navcontroller sits in the app delegate. But how do I best access the navcontroller from the delegate class ?