Hello,
I'm trying to create an IBOutlet from a UIButton that lives in a UITableViewCell subclass in a static UITableView. I've set the custom class for the appropriate cell in my storyboard. I've added the UIButton as a subview of that cell's content view. However, I can't control+drag from the storyboard into my custom cell swift file. Is there any way to accomplish this?
I'm working in Xcode 6.
Thank you.
I found a workaround:
Instead of control+dragging from the storyboard to the Swift file, I did the following.
- Declare an @IBOutlet property in the appropriate Swift file
- Drag from the circle plus icon that appears in the gutter to the left of that property to the view on the storyboard that you would like to hook up.
At first, this wasn't working for me because (at least on OS X El Capitan) Xcode 6 would try to resize the Assistant editor divider whenever I dragged from the circle plus icon.