Removing Title of Back Button on Navigation Bar

12 Jun 2015

Tried lots of code, and …

navigationController?.navigationBar.backItem?.title = nil
navigationController?.navigationItem.backBarButtonItem = nil

Screen Shot 2015-06-13 at 12.10.30 AM

 

Frustrated? Just give yourself space, literally. Go to rootViewController of UINavigationController

and set backBarButtonTitle of UINavigationItem to “ “

navigationController?.navigationBar.backItem?.title = " "

Screen Shot 2015-06-12 at 11.58.46 PM