How do I override the back button for just one view (not for all the back buttons present in different views) such that on click of the back button, root view controller is
Use this code to show a custom back button, Note the backBarButtonItem before marking it as a duplicate answer.
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"< back"
style:UIBarButtonItemStylePlain
target:self
action:@selector(handleBack:)];
self.navigationItem.backBarButtonItem= backButton;
Cheers!