Setting Back Button Tittle in Navigation Controller problem
- by Rafael
Hi,
I'm trying to change Back Button tittle in a navigation controller in the following way:
In the parent controller I put this in vieDidLoad:
self.title = @"Calendars";
self.navigationItem.backBarButtonItem.title = @"Previous";
But this controller is in the stack since I initialized the app:
-(void)applicationDidFinishLaunching:(UIApplication *)application{
navController.viewControllers= [NSArray arrayWithObjects:aController,aBcontroller,nil];
[window addSubview:navController.view];
}
So, the viewDidLoad in aController is not called until I select the back buttom the first time in the bController...
Does anyone knows how to call viewDidLoad just when I push it into the stack? Or do you know another way to change the BackButtom title?
Thanks in advanced for your help.