Hi i am making a custom UIButton which have images for UIControlStateNormal and UIControlStateSelected. But when i set [myBtn setEnabled:No];
it changes back to UIControlStateNormal state instead of disabling at selected state. How can i keep the current state of button and disable it?
Use userInteractionEnabled = NO
instead of enable disable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With