iphone - Setting Back Button Title in NavigationController -
I am trying to change back button titles in the navigation controller in the following manner:
 Controller I put it in  vieDidLoad : 
  self.title = @ "calendar"; Self.navigationItem.backBarButtonItem.title = @ "Previous";   But this controller is in the stack because I have initialized the app:
  - (zero) applicationdeffish: Launching: (UIApplication *) application {navController. ViewControllers = [Object with NSA array: A controller, one controller, zero]; [Window add sbewview: navController.view]; }   So, viewdoadloads in a controller are not called until I first select Bettam in the Bicontroller ...
Does anyone Know how to call viewDidLoad just when I push it into a heap? Or do you know another way to change the backboot title?
You can set the back button title for any ViewController you are in the line of the following code :
  self.navigationController.navigationBar.backItem.title = @ "Previous";   
Comments
Post a Comment