Hi,
I have 2 views. One is the 'viewheader' and the other is the 'viewContent' (added as subview).
'viewContent' contains a TableView (based on UINavigationController) and the TableView can drill down to a DetailView (UIViewController). (see Image below)
My Question is: How can I remove (pop) the DetailView, with a UIButton FROM the 'headerView'.
The goal is to create a fixed Navigation, and only change (animate) the lower Content.
Thanks
// add "fixed" Header
- (void)loadView {
viewHeader = [[HeaderViewController alloc] initWithNibName:@"HeaderViewController" bundle:nil];
self.view = viewHeader.view;
}
// add content view
- (void)viewDidLoad {
[super viewDidLoad];
viewContent = [[MainContentViewController alloc] initWithNibName:@"MainContentViewController" bundle:nil];
CGRect viewFrame = CGRectMake(0.0f, 164.0f, 320, 316);
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewContent];
[navController setNavigationBarHidden:YES];
[navController.view setFrame:viewFrame];
viewHeader.contentNavView = navController; // <<<< CAN'T POP THE VIEW by passing UINavigationController to "header view"
[self.view addSubview:navController.view];
}