How do I hook up a custom tab bar build in IB to a UINavigationController Object instanced in XCODE?
- by David Hsu
What I did to create the custom NAV BAR:
1. Created an empty XIB and added a view with class UINavigationController.
2. Under the view I added the navigation bar and a left and right button onto the nav bar.
3. Control drag from "File Owner" to "View"
Inside my class where I call the modal view navigation controller:
SignupViewController *addController = [[SignupViewController alloc]
initWithNibName:@"SignupViewController" bundle:nil];
// Create the navigation controller and present it modally.
UINavigationController *navigationController = [[UINavigationController alloc]
initWithRootViewController:addController];
navigationController.navigationBar = ///WHAT SHOULD GO HERE?
[self presentModalViewController:navigationController animated:YES];
Thank in advance!