Hello,
I've got a problem, which I can't figure out with the docs.
I got a class, named CustomViewController, which subclasses UIViewController.
In AppDelegate I got a property customNavController, which is connected to a TabBarController from MainWindow.xib. I created an object from class CustomViewController (which comes from CustomViewController.xib) and push it on the customNavController. It appears and works fine, but I need to send the navigationController property inside the CustomViewController object to an instance object. The problem is, inside the the method initWithNibName:bundle: of the CustomViewController, the navigationController property is nil. Also in viewDidLoad: (which is called before initWithNibName:bundle:, which I also don't understand) it is not valid (0x0). Can someone explain me this?
Code in AppDelegate:
Code:
CustomViewController *customViewController = [[[CustomViewController alloc] initWithNibName:@"CustomViewController" bundle:nil] autorelease];
[customNavController initWithRootViewController:customViewController];
Please help, I have done a lot of recherche work already with no result.
Thanks in advance.
kind regards, Phil