Xcode hook up button - Understanding how to hook up sent actions in IOS Xcode.


This gives us an entry to call the segue. We will customize it in a minute. Now, we would like to hook up the menu button in the navigation bar so calls this method when tapped. Right-Click on the TimelineViewController in the storyboard and Ctrl-Drag from the menu button item to the presentNavigaton method, choose Touch-up inside as the interaction method. Now you should be able to run the app. If you do exactly that, then tap on the menu button, you will see the Navigation View popping up in a normal modal transition. What we want to achieve is a much more interesting transition. So let’s get to that.

Why didn't I just dragged the UIButton onto the UINavigationBar to begin with? Because, once the button is there, Interface Builder won't let you change the type to InfoLight for whatever reason.


Xcode hook up button

Xcode hook up button