Using a delegate in a Navigation Controller in a SplitView Application
===

I have a split view application, where my master view contains a navigation controller. The first view for the master view is a table controller, which when an item is clicked, pushes to a new master tableviewcontroller. At the same time, it pushes the detailview to a new view controller. I basically took the Multiple Detail Views code that apple gives and i modified the didSelectRowAtIndexPath for the RootViewController to include:


    SecondMenuViewController *secondmenu = [[SecondMenuViewController alloc] initWithStyle:UITableViewStylePlain];
        
    [self.navigationController pushViewController:secondmenu animated:YES];

This works fine. The problem becomes I want to now change labels, etc in the detail view that is now shown, depending on what row of the drill down masterviewcontroller has been clicked.

I realise that i must somehow implement delgates somewhere, but every example i can see uses only the one masterviewcontroller and one detailviewcontroller so they set the delegate in the AppDelegate didFinishLaunchingWithOptions section. How do I set the delegate correctly?
Can I set the delegate upon pushing the new view controller? 
