mdinacci / MDRadialProgress

A custom UIView useful to represent progress in discrete steps.
Other
947 stars 159 forks source link

Update with uislider #9

Closed Bill-Niz closed 11 years ago

Bill-Niz commented 11 years ago

Hi, when i connect the value of a slider and MDRadial, the view stay the same.

Thx.

mdinacci commented 11 years ago

Hi,

thanks for the report.

It's possible that the view needs to be redrawn. I haven't though of using the component with a slider.

After assigning the value to the view in your function, could you please add this line:

[self.radialView setNeedsDisplay];

and tell me if it works ?

Thanks

Bill-Niz commented 11 years ago

Yes it works great. Another issue is that when you reach the Max value for example 10 , the MDRadial act like it's 0 so the view is totally unfilled.

mdinacci commented 11 years ago

I just noticed that bug too, I'll try to fix it soon.

mdinacci commented 11 years ago

Hi,

I pushed a new version that fixes the issue.

This is the fix in case you can't update or you're using pod: https://github.com/mdinacci/MDRadialProgress/commit/2e90694fbc1e970d422ed5eb8a3b14b9773ffcbf

Thanks