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

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -