Andriy Privalov Andriy Privalov - 5 months ago 23
Swift Question

I can't connect button to @IBAction

I'm stuck after attempt to connect button to

IBAction
. Could you help, please? It doesn't show me any possibility to connect:

(picture linked)

here goes the function of my
@IBAction


(picture linked)

Answer

When you select view controller on the storyboard then check on the right is custom class set to your view controller!

First select:

Image 1

Then check on right.

Image