Hortitude Hortitude - 1 year ago 84
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 Source

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

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download