Search code examples
swiftxcodexcode-storyboard

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


Solution

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

    enter image description here