i want a timer wich is starting if a button is pressed.
while the timer is running, it is not possible to press the button again. and a alert will show up..
have you an idea how to realize it?
Tank you!
i want a timer wich is starting if a button is pressed. while the
Share
Create an NSTimer the first time the button is pressed, and while the timer is valid, don’t allow the action to happen, and popup your alert.
Store your NSTimer in a property on your object.
Interface:
Implementation: