I made a UIView using Interface Builder with a top bar that has Cancel and Save buttons. But when the view is displayed in the simulator it has an extra Navigation bar below the one that I’ve designed on purpose. The extra bar has no buttons on it. Anyone has a clue where I can look to get rid of the extra nav bar?
Update: While experimenting with removing my ‘custom’ navigation bar and adding it again something changed. I now have the extra navigation bar on top of my custom one and it has a Back-button with the title of the previous view. Don’t know how significant this is, but thought I should mention it.
You’re pushing your UIVIew’s controller onto an already existing UINavigationController (which comes with its own navigation bar).
What you need to do is get rid of your views ‘top bar’ and access your current controller’s navigationItem. Set the close/save buttons using leftBarButtonItem and rightBarButtonItem, possible even the titleView.