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
I'm not a fan of any of the above:
switch sender as! NSObject { case self.buttoneOne: println("do something when first button is tapped") case self.buttoneTwo: println("do something when second button is tapped") default: println("default")
}