ios - How does UIProgressView get information on animation duration? -


i'm working on circular progress view , it's working quite cool. i'd make more flexible, user use normal uiprogressview paired nstimer. cannot figure how make equivalent of: setprogress:(float)progress animated:(bool)animated? i'm testing hardcoded values , durations it's animating nicely, surely can somehow achieved inform on exact duration value?

got camediatimingfunction put inside method updating cgpath

if (self.continuous) { cabasicanimation *animation = [cabasicanimation animationwithkeypath:@"strokeend"]; //animation.duration = 0.5; animation.fromvalue = [nsnumber numberwithfloat:prevvalue]; animation.tovalue = [nsnumber numberwithfloat:_value]; animation.removedoncompletion = no; animation.fillmode = kcafillmodeforwards; animation.timingfunction = [camediatimingfunction functionwithname:kcamediatimingfunctioneaseout]; [self.progresslayer addanimation:animation forkey:@"strokeendanimation"]; }


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -