I\'ve tried this for hours but I still cannot solve it. When using UINavigationController and push a new view controller on top, I got a free \"back\" button on the left of
SWIFT 5 this worked for me. Thanks
self.navigationItem.leftItemsSupplementBackButton = true
As stated by steipete in the comment to the question, this is possible starting from iOS 5. You can use
self.navigationItem.leftItemsSupplementBackButton = YES;
and then you just need to add an UIBarButtonItem as leftButton to get a second button after the back button
UIBarButtonItem *secondButton = [[UIBarButtonItem alloc] initWithTitle:@"Second" style:UIBarButtonItemStylePlain target:self action:@selector(yourAction)];
self.navigationItem.leftBarButtonItem = secondButton;