I am trying the following code to make a UIButton look Disabled :
btnYourButton.alpha = 0.6f;
btnYourButton.enabled = NO;
While making is enabled(and of course to look enabled)
btnYourButton.alpha = 1.0f;
btnYourButton.enabled = YES;
Isn’t there any way, by which I can perform both of this (making UIButton disable/enable and also to make it look disable/enable) in a single statement ?
Or you could try subclassing UIButton, something like:
file MyKindOfButton.h
file MyKindOfButton.m