Using the UINavigationViewController on Your Own

In my application based on a table view controller with a lot of uinavigationviewcontrollers for each tab element, I want to present at some point (when the application starts) a call to presentModalViewController that contains the uinavigationcontroller as the root, so the user can do a few things ... when he or she is finished, the “Finish” button in the upper right corner can be activated to reject the modal view controller and then return to the base panel view. How can I do this with the Builder interface?

+5
source share
1 answer

In Xcode, create a new XIV View file and open it in Interface Builder. In this xib file, delete the View and drag the UINavigationController into it.

Then, in your opinion, the controller code, something like

UINavigationController *controller = [[UINavigationController alloc] initWithNibName:@"ModalViewController" bundle:nil];
[self presentModalViewController:controller animated:YES];
[controller release];

Download your XIB and submit it.

Hope this helps, any other questions feel free to comment on this answer!

S

+4
source

All Articles