I have a UIButton that I disable for a few seconds after the user clicks it (using button.enabled = NO
). The button disables, but touching it whilst disabled causes the view behind to receive the touch - something I don't want.
I've tried button.userInteractionEnabled = NO
as well but this has the same problem.
Can I have the button consume the touch? Or do I have to keep it enabled and programatically halt code execution in the IBAction
?