Draw custom Back button on iPhone Navigation Bar?

You need to set up a custom stack of UINavigationItem objects and push them on to the UINavigationBar. This is the only way I know of to get a true back button. I haven't tested this code, but you should do something like this.

You need to set up a custom stack of UINavigationItem objects and push them on to the UINavigationBar. This is the only way I know of to get a true back button. I haven't tested this code, but you should do something like this: UINavigationItem *previousItem = UINavigationItem alloc initWithTitle:@"Back title" autorelease; UINavigationItem *currentItem = UINavigationItem alloc initWithTitle:@"Main Title" autorelease; navigationBar setItems:NSArray arrayWithObjects:backItem, currentItem, nil animated:YES; To handle when the buttons are pressed you should set yourself as the navigation bar's delegate and implement the UINavigationBarDelegate delegates.

Excellent! Fantastic answer :) – ing0 Nov 23 '10 at 22:33.

You can also update this by modifying the backBarButtonItem on the previous view controller (not the currently viewed one).

I think your answer can help me in my problem, please how to use the backBarButtonItem in my code, assuming that this is my code in the previous view: -(IBAction)goToRechercherView { rechercherViewController. ModalTransitionStyle=UIModalTransitionStyleFlipHorizon? Tal; self presentModalViewController:rechercherViewController animated:YES; } – Malek Mar 29 at 8:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions