My App has two pages, so in interface builder I have three controllers:
I easily added a Bar Button to the right side of the navigation bar of TableViewController1 by dragging it from the tools.
Tried to do the same thing in TableViewController2 and it won't drop the bar button.
I have the "Shows Navigation Bar" attribute checked on the Navigation Controller and I can see a space for the navigation bar on TableViewController2, but I don't see the same "Navigation Item" in the component hierarchy that I see for TableViewController1.
If I drag a bar button to the controller itself it puts a new NavigationItem icon on the controller (between First Responder and Exit) and that looks promising, but it doesn't show when I run the app.
For this TableViewController2, you have to explicitly add a navigation item into the xib and then you can add bar button items on it.
It will look like this in xib , you can set title and button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With