Setting Back Button Tittle in Navigation Controller problem
Posted
by Rafael
on Stack Overflow
See other posts from Stack Overflow
or by Rafael
Published on 2010-06-15T20:59:48Z
Indexed on
2010/06/15
21:02 UTC
Read the original article
Hit count: 258
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.
© Stack Overflow or respective owner