I set up my app using a storyboard and have my main view controller embedded in a UINavigationControler
. To change the title that appears in the navigation bar, in the viewDidLoad
method of my main view controller, I have self.navigationItem.title = @"My Title";
But the title never gets set.
My guess is that I need to set up a Reference Outlet in my storyboard, but I'm not sure what needs to be connected to what. Any ideas?