I'm now 3 months into the Xcode trying with all my might to get a grip of this monster. It's been antisocial, hard, painful and unbelievably frustrating but.. kinda fun. I've been making some great progress recently but, after spending 2 whole days trying to make one simple, simple, SIMPLE thing to work, I feel like jumping up and down on my wife's Mac (I just upgraded the memory in mine).
I have a tabbed app with 5 views up and running, each doing their own thing. I also have another app with a navigation bar that allows me to drill down into a simple database. Both work great and I *believe* I understand what's going on. Happy.
But how on earth do I put them together? How do I put the drill down navigation app "into" one of the views in my tabbed app? It sounds simple but seeing as both of them have separate delegates I don't know where to start. I've tried to "intelligently" merge the code together so that the navigation codes sits in one of the views and the delegate holds the necessary properties/methods to keep everybody happy, but no luck. It just crashes.
I can't really post all the code, but just knowing the following simple question would be a great start; is the following delegate code OK? Are the navigation bar and toolbar "added" here?
- (void)applicationDidFinishLaunchingUIApplication *)application {
[window addSubview:[navigationController view]]; // navigation bar
[window addSubview:rootController.view]; // toolbar
[window makeKeyAndVisible];
}
I've looked around the internet for sample code/skeleton apps to see where I'm going wrong but all the samples are an Navigation OR Toolbar examples. All help gratefully received.
Justin kaiwa@mac.com
I have a tabbed app with 5 views up and running, each doing their own thing. I also have another app with a navigation bar that allows me to drill down into a simple database. Both work great and I *believe* I understand what's going on. Happy.
But how on earth do I put them together? How do I put the drill down navigation app "into" one of the views in my tabbed app? It sounds simple but seeing as both of them have separate delegates I don't know where to start. I've tried to "intelligently" merge the code together so that the navigation codes sits in one of the views and the delegate holds the necessary properties/methods to keep everybody happy, but no luck. It just crashes.
I can't really post all the code, but just knowing the following simple question would be a great start; is the following delegate code OK? Are the navigation bar and toolbar "added" here?
- (void)applicationDidFinishLaunchingUIApplication *)application {
[window addSubview:[navigationController view]]; // navigation bar
[window addSubview:rootController.view]; // toolbar
[window makeKeyAndVisible];
}
I've looked around the internet for sample code/skeleton apps to see where I'm going wrong but all the samples are an Navigation OR Toolbar examples. All help gratefully received.
Justin kaiwa@mac.com