What I am trying to do is to make the Application Delegate Navigation Controller the Navigation Controller for a programmatically inserted tableView (only the view, not the view with navigation controller... if this is possible.
What I was hoping for is that I could do something like the following:
What I was hoping for is that I could do something like the following:
Code:
navController = tableViewAppDelegate.navigationController;
Code:
tableViewAppDelegate = (TableViewAppDelegate *) [[UIApplication sharedApplication] delegate];
DetailViewControllerSenateNoTossUp *cnewTableViewFrameController = [[DetailViewControllerSenateNoTossUp alloc] initWithNibName:@"DetailView" bundle:nil];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:newTableViewFrameController];
CGRect newTableViewFrame;
newTableViewFrame.origin.x = 0;
newTableViewFrame.origin.y = 0;
newTableViewFrame.size.height = 200;
newTableViewFrame.size.width = 280;
UIView *newTableView = [[UIView alloc] initWithFrame: newTableViewFrame];
newTableView = newTableViewFrameController.view;
[self.view addSubview:newTableViewFrameController.view];