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?
The back button will call
UINavigationController‘spopViewController, so you can replicate that on yourhomeButtonClicked:selector.