I am trying to add a target to a button this way:
btnAll.addTarget(self, action: #selector(buttonTapped(_:)), for: .touchUpInside)
But this gives me an error:
Using an unresolved identifier 'buttonTapped'
But I declared a function like:
func buttonTapped(sender: UIButton) { print("All Tapped") }
Can someone tell me this is the right way to do this in quick 3.
ios iphone swift swift3 uibutton
Ram Mani Aug 29 '16 at 11:49 on 2016-08-29 11:49
source share