Search code examples
iosxcodeios6

It won't allow me to create an outlet


I've got a Table View Controller object in my Storyboard, but I've made it a custom class called StaticDetailViewController, which I created as a subclass of UITableViewController.

However, when I go to drag from the view to the .h file in the Assistant view, no connection option appears. Why is this?


Solution

  • You have to open and close your curly braces for your @interface in the .h file. For some reason it won't let you control drag using the assistant editor unless you do so... (screenshot)

    enter image description here