UINavigationController as child view of UIViewController?

Connect your navigation controller in IB (in this case navController ) and init it with your controller.

Up vote 0 down vote favorite share g+ share fb share tw.

I have an application that isn't nav based. So there is no UINavigationController in the App Delegate. However, I need to switch to a UINavigationController for a piece of the application.

Steps I currently took... Create a new Class that extends UIViewController Added a UINavigationController via IB Told IB that the new UIViewController's view is the view for the UINavigationController The problem now is that the File's Owner needs it's view set. But via IB there is no way to specify this. So obviously, I'm not going about this the right way.

Any tips in the right direction are much appreciated. Iphone iphone-sdk-4.0 uiviewcontroller uinavigationcontroller link|improve this question asked Dec 30 '10 at 22:49Gregg4,0301530 72% accept rate.

Connect your navigation controller in IB (in this case navController) and init it with your controller: MessageViewController *mView = MessageViewController allocinitWithNibName:@"MessageView" bundle:nil; mView. NavController = UINavigationController alloc initWithRootViewController:mView; self presentModalViewController:mView. NavController animated:YES; mView release.

Perfect! Thanks. – Gregg Dec 30 '10 at 23:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions