danielamitay / DACircularProgress

DACircularProgress is a UIView subclass with circular UIProgressView properties.
Other
2.38k stars 341 forks source link

thicknessRatio under default value #52

Open santiacho opened 9 years ago

santiacho commented 9 years ago

if you set de thicknessRatio under 0.3, as set in initialize method:

The thicknessRatio never changes its value.

¿Does anybody know why?

Thanks.

santiacho commented 9 years ago

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. Here you have the example:

self.ringView = [[DACircularProgressView alloc] initWithFrame:self.ringView.frame]; [self.ringView setProgressTintColor:[UIColor ftb_colorWithHexString:@"#5BC894"]]; [self.ringView setTrackTintColor:[UIColor clearColor]]; [self.ringView setInnerTintColor:[UIColor clearColor]]; [self.ringView setThicknessRatio:0.22]; [self.viewBarProgress addSubview:self.ringView];

captura de pantalla 2015-05-08 a las 14 42 30

cuongtv51 commented 9 years ago

Hi @santiacho , I have test but not reproduce this bug, if can, you can give some detail sample code ? Thanks.

santiacho commented 9 years ago

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... I f you try to create the view with IBOutlet and link the view with it in InterfaceBuilder, you'll see how the background still has the default color and default radio. Downloading the example code from the repository help me to see how creating the view programmatically works like a charm.

Thanks!