I wand to disable userinteraction for a UIButton of type RoundedRect. I tried
[previousAudio userInteractionEnabled:NO];
But got the exception
Terminating app due to uncaught exception NSInvalidArgumentException, reason: -[UIRoundedRectButton userInteractionEnabled:]: unrecognized selector sent to instance
what can I do instead to disable userinteraction ?
Thanks.
you can use
previousAudio.enabled = NO OR YESinstad of[previousAudio userInteractionEnabled:NO];