ios - Disabling a control with Pixate Freestyle -
i have uibutton following css
button { size: 50 100; color: #ff0000; } but want disable button based on style maybe:
button { size: 50 100; color: #ff0000; enabled: true; } does know how accomplish or add extension method enable this?
i don't think there enabled or disabled pseudo-classes available uibutton. potentially instead detect button state , assign styleclass dynamically this:
#import <pixatefreestyle/pixatefreestyle.h> uibutton *button = [uibutton new]; if(button.enabled){ button.styleclass = @"mybutton"; }else{ button.styleclass = @"mybuttondisabled"; } ...and css be:
.mybutton { /* default button styles */ } .mybuttondisabled { /* disabled button styles */ } i hope helps. luck.
Comments
Post a Comment