Redraw issue objective-c
This is my problem:
The background of the progress indicator doesn't appear to be redrawing, and it's ce开发者_开发技巧rtainely not transparent. I'm using core animation to animate the image in the background; when I don't use core animation it looks fine. This is the code I am using:
[[NSAnimationContext currentContext] setDuration:0.25];
[[ViewImage animator] setAlphaValue:0.5f ];
[[statusText animator] setAlphaValue:0.1f ];
[progressIndicator usesThreadedAnimation ];
The progress indicator doesn't use core animation. I have also tried removing [progressIndicator usesThreadedAnimation];
which doesn't help.
-usesThreadedAnimation is the getter for the property. You want -setUsesThreadedAnimation: to set the property.
Also, for the transparency issue, I believe you need to switch on layers for at least the progress indicator if not the parent view as well. That should fix the transparency issue.
精彩评论