views:

61

answers:

1

i have a method in subclass of UIView like this

-(void) reDrawPreviewWith:(UIColor *)textColor withGlowColor:(UIColor *)glowColor withGlowIntensity:(float)glowIntensity

I am calling this method by

float glowIntensity = 30.0f;
[preview reDrawPreviewWith:[UIColor colorWithRed:red green:green blue:blue alpha:1.0]
                             withGlowColor:[UIColor colorWithRed:red green:green blue:blue alpha:1.0]
                         withGlowIntensity:glowIntensity];

but inside body of reDrawPreviewWith i am always getting glowIntensity=0

+1  A: 

I tried to test your code with a debugger, and it seems to pass the glowIntensity parameter correctly. Are you sure there is no other place where reDrawPreviewWith: gets called? Perhaps in a wrong way?

duhanebel