Hi,
I'm loading a subview when my application launches, so the user can select an item in a tableview and then it will drill down and show a subview.
This works fine.
I've now changed my application so it now has a tabbarcontroller, you can successfully tab between the views.
However, in order for this to work, I can to add [_window addSubview:rootController.view]; to the code below and remove [_window addSubview:_navigationController.view];
Now obviously, the selection of the uitableview fails to drill down. Can anyone suggest how I can resolve this as I think you can only load one subview.
Here is my code:
- (void)applicationDidFinishLaunching

UIApplication *)application {
_navigationController.viewControllers = [NSArray arrayWithObject:_viewController];
// Override point for customization after app launch
//[_window addSubview:_navigationController.view];
//[_window makeKeyAndVisible];
[_window addSubview:rootController.view];
[_window makeKeyAndVisible];
}
Thanks,
Nick