views:

25

answers:

1

I have created my own leftBarButtonItem:

UIBarButtonItem* homeButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks 
                                                                                    target:self 
                                                                                    action:@selector(homeButtonClicked:)];

self.navigationItem.leftBarButtonItem = homeButton;

How can I restore the original back button functionality programmatically?

A: 

The back button will call UINavigationController's popViewController, so you can replicate that on your homeButtonClicked: selector.

pgb