Okay i know this has been a question asked b4, but since it should be easy to answer i would like to get a better answer. I have a start and a stop button on a timer. I want the play button to be disabled while the clock is running and enabled when the clock is stopped, visa versa, but also i would like it to be hidden when its disabled, so could some show me the code to disable and hide a button that has been recently pressed and then reenabled and visible when the other one is pressed.
Share
You should have IBOutlets to the buttons and then access them directly. Don’t forget to link them on Xcode
On the action linked to the tap of play button:
Then, when you tap the stop button: