In my project I have a button that calls a function via a IBOutlet, I need to know how can I put in the function code to make disable the button, as I identify the button (using tags?)
And what to write?
In my project I have a button that calls a function via a IBOutlet,
Share
I think you’re slightly confused. Your button is connected to a method via an IBAction. You’ll need to create a
@propertyfor your button and connect it to IB via an IBOutlet.Alternatively you could utilize the
senderargument from the IBAction. Something like this perhaps…