07-19-2023, 01:21 AM
Selectors are a struct that have to be created.
Do it this way...
## Updated for Swift 4
settingsButton.addTarget(self, action: #selector(showSettings), for: .touchUpInside)
That should do it.
Do it this way...
## Updated for Swift 4
settingsButton.addTarget(self, action: #selector(showSettings), for: .touchUpInside)
That should do it.