-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thicknessRatio under default value #52
Comments
If at least you could remove background... the bug will fix to, because what doesn't set the thicknessRatio is the background, the progress and tracker does. self.ringView = [[DACircularProgressView alloc] initWithFrame:self.ringView.frame]; |
Hi @santiacho , |
Hi @cuongtv51, The sample code I provide is all I have, but I think that I solved my problema creating the View programmatically. I used to create DACircularProgressView as IBOutlet and I think that was the problem... Thanks! |
if you set de thicknessRatio under 0.3, as set in initialize method:
(void) initialize
{
if (self == [DACircularProgressView class]) {
DACircularProgressView *circularProgressViewAppearance = [DACircularProgressView appearance];
[circularProgressViewAppearance setTrackTintColor:[[UIColor whiteColor] colorWithAlphaComponent:0.3f]];
[circularProgressViewAppearance setProgressTintColor:[UIColor whiteColor]];
[circularProgressViewAppearance setInnerTintColor:nil];
[circularProgressViewAppearance setBackgroundColor:[UIColor clearColor]];
[circularProgressViewAppearance setThicknessRatio:0.3f];
[circularProgressViewAppearance setRoundedCorners:NO];
[circularProgressViewAppearance setClockwiseProgress:YES];
}
}
The thicknessRatio never changes its value.
¿Does anybody know why?
Thanks.
The text was updated successfully, but these errors were encountered: