Reputation: 13
I'm making an app with multiple views, using a Navigation Controller. I can easily change views by ctrl-dragging from a button to another view, but it doesn't work by doing the same thing, but with a button in the Navigation Bar.
At first, I had a warning about the style of the button, so I changed it from Plain to Bordered. I have no warning now, but when I click on the button, nothing happens.
Thanks for your help!
Upvotes: 1
Views: 3554
Reputation: 130212
Try it again but using a UIBarButton, then link the push action to it and it should work.
Upvotes: 1
Reputation: 14835
Right-click the button and drag the circle next to "Push" under Storyboard Segues over to the view you want the button to navigation to.
Upvotes: 1