Removing the title text of an iOS UIBarButtonItem

To set the back button title for a view controller without changing its title use: Objective-C: self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@”” style:self.navigationItem.backBarButtonItem.style target:nil action:nil]; Swift: navigationItem.backBarButtonItem = UIBarButtonItem(title: “”, style: .plain, target: nil, action: nil) To be clear, this is done on the view controller that you would see if you hit the back button. … Read more

Changing back button in iOS 7 disables swipe to navigate back

IMPORTANT: This is a hack. I would recommend taking a look at this answer. Calling the following line after assigning the leftBarButtonItem worked for me: self.navigationController.interactivePopGestureRecognizer.delegate = self; Edit: This does not work if called in init methods. It should be called in viewDidLoad or similar methods.

Setting action for back button in navigation controller

Try putting this into the view controller where you want to detect the press: -(void) viewWillDisappear:(BOOL)animated { if ([self.navigationController.viewControllers indexOfObject:self]==NSNotFound) { // back button was pressed. We know this is true because self is no longer // in the navigation stack. } [super viewWillDisappear:animated]; }