Instance Method Error #42
-
It shows an instance method error when I try to put an @IBAction for a button. How do I fix it? |
Beta Was this translation helpful? Give feedback.
Answered by
granwyntan
Oct 16, 2021
Replies: 1 comment 1 reply
-
It seems that your |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Joeispro99
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that your
@IBAction func UpgradeAutoClickerPressed() {}
is within theoverride func viewDidLoad() {}
scope, so you can add a close bracket}
on line 27 to close theviewDidLoad()
override function. Hope it helps