So I have a storyboard with 3 buttons I want to just create 1 action for all those 3 buttons and decide what to do based on their label/id...
Is there a way to get s
You can create an outlet for your buttons and then implement:
@IBAction func mainButton(sender: UIButton) { switch sender { case yourbuttonname: // do something case anotherbuttonname: // do something else default: println(sender) } }