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 co开发者_JS百科lorWithRed: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
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?
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论