I had a similar problem earlier today. In the viewDidLoad method of my modal view's controller, I was trying to set the title of the navigation bar as well as add left and right buttons to the navigation bar. I was accessing the navigation bar using "self.navigationItem".
And as in your app, I was not getting the desired effect.
But I went back to IB and by right clicking on the File Owner (set in IB to my modal view's controller), I noticed that its "navigationItem" property was not connected to my modal view's navigation bar. Once I established this connection, everything was fine.
|