I have 4 buttons that call one function. Depending on which button was pressed i need to hide button inside of function that called after pressing.I dont know which button w
Why you always want to use tags to determine the UIButton ? If the called function has a sender parameter then you know the UIButton which called the function through this parameter.
func buttonClicked(sender: UIButton)
{
switch sender {
case button1: // Do something
case button2: // Do some other stuff
...
default: ()
}
}