This might be a silly question but I am trying to add a bar button item on a view without the need of a navigation controller in the Storyboard. For some reason when I set the navigation bar visible and try to drag the bar button item it does not stick any suggestions? Thank you in advance!
0
votes
Take a look at stackoverflow.com/questions/9188793/…
- derpoliuk
When you say "...when I set the navigation bar visible..." you mean you set the Top Bar attribute to Opaque Navigation Bar or similar?
- Alexandre Lins
I was adding the simulated metrics, top bar from inferred to navigation bar
- paul590
1 Answers
1
votes
You are probably setting the Simulated Metrics Top Bar as a Navigation Bar, but that, as the name says, only SIMULATES those objects, and don't insert them on your view. That is why you can't insert the Bar Button in something that is not there.
EDIT
You could try [self.navigationController.navigationBar setHidden:YES] to hide the "second bar" that might appear after inserting the true nav bar.
Hope it helps...