Hortitude Hortitude - 3 months ago 7
Swift Question

can't add an events to a button in a storyboard

I know I can control drag from my button to my controller, but it looks like I should also be able to simply click the "+" button to add an action. However, clicking the + doesn't seem to do anything

storyboard actions

Answer

After you tap on +, you need to drag that blue line to the code:

enter image description here