How do I hook up a custom tab bar build in IB to a UINavigationController Object instanced in XCODE?

Posted by David Hsu on Stack Overflow See other posts from Stack Overflow or by David Hsu
Published on 2010-06-10T23:07:31Z Indexed on 2010/06/10 23:12 UTC
Read the original article Hit count: 328

Filed under:

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!

© Stack Overflow or respective owner

Related posts about iphone