I created story board application in XCode 4.3.3. (Single View Application -> Use storyboards checkbox)
Then I created second ViewController (first one is created when application initially created)
I added Round Rect Button with title “log2” to second ViewController.
Then I want to add code for handling event “TouchUpInside”. To achive this I press Show the Assistant Editor” button and try to control drag “log2” button to source code of ViewController.h.
But nothing happens.
How to add TouchUpInside handler for “log2” button described above?
What is interesting, if I add button to the first ViewController, control-drag works fine for the button and I can create event handing.
Yes, you want to manually add a file, that’s a subclass of UIViewController to your project, and set the second view controller in your storyboard to that class (in the identity inspector). Then you should connect the button to that controller, not the first one.