Monday, 15 June 2015

iphone - Is there a way to use `someButton.enabled = NO;` without dimming the custom image UIButton? -



iphone - Is there a way to use `someButton.enabled = NO;` without dimming the custom image UIButton? -

is there way utilize somebutton.enabled = no; without dimming custom image of uibutton?

i alter images without ios enabled=no effect.

it's matter of setting image of disabled button equal image when button enabled:

uiimage* image=[button imageforstate: uicontrolstatenormal]; [button setimage: image forstate: uicontrolstatedisabled];

iphone ios objective-c uibutton

No comments:

Post a Comment