Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SERAPHRowen

macrumors newbie
Original poster
Sep 15, 2010
11
0
So, I've been writing an app based loosely on this tutorial:
http://developer.apple.com/library/...iPhoneCoreData01/Articles/01_StartingOut.html

My basic problem is, the AppDelegate creates the window and the navigation controller, but the add button for the navigation bar is created in the root view controller. I need the add button to push a view controller with the navigation bar. However, the view controller and the navigation bar are created and stored in the AppDelegate. The view controller I want is a xib I've setup in interface builder, and the delegate has an output link that references it. I tried setting the delegate of my root view controller to be the app delegate, but it doesn't appear to have a delegate member variable.

I feel like I'm missing something core to this language, since the example provided by apple seems to be oxymoronic ( but almost certainly isn't.) Feel free to give a "read up on X noob" response, I realize this is almost certainly some core misunderstanding I have about working in this environment. I'm just not sure where to start looking.
 
Normally, if you are within a viewController that's already on the nav-stack, you can simply call:
Code:
[self.navigationController pushViewController:[I]newViewController[/I] animated:YES];
 
Normally, if you are within a viewController that's already on the nav-stack, you can simply call:
Code:
[self.navigationController pushViewController:[I]newViewController[/I] animated:YES];

Yeah, the problem I was having with that is that the view controller is still referenced in the delegate.

Reading up on UIApplication resolved my misunderstanding, and implementing accordingly resolved my issue. Thanks guys.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.