ios - Get Alpha Value Objective-C -


how alpha value of nsbox , use in if statement?

i want check alpha of nsbox if value equal 0 something.

if ([preferences alphavalue ==0]) { [[[[preferences subviews] objectatindex:0] animator] setalphavalue:0.0]; } else { [[[[preferences subviews] objectatindex:0] animator] setalphavalue:1]; } } 

do want

if ([preferences alphavalue] == 1.0) 

or something?

you need explain want more clearly.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -