ios - UIProgressView Keeps Resetting to 0.0 -
i've got uiprogressview in storyboard hooked code. i'm trying set progress non-zero.
here's example of code i've placed in viewdidload.
[self.progressbar setprogress:(float)somevaluebetween0.1and1.0 animated:no];
however, what's happening progress bar @ value set, , animate down 0.0. instance, if set progress 0.5, bar filled half way when view loads , animate down 0.0.
i've tried using
self.progressbar.progress = (float)somevaluebetween0.1and1.0;
that hasn't worked either.
i'm not modifying progress bar's progress via code anywhere else. i've tried googling, reading uiprogressview class reference, , searching stack overflow without success :/
edit: created new project nothing more uiprogressview sure it's not else in code. still not working.
#import "viewcontroller.h" @interface viewcontroller () @property (weak, nonatomic) iboutlet uiprogressview *testprogressview; @end @implementation viewcontroller - (void)viewdidload { [super viewdidload]; [self.testprogressview setprogress:1.0 animated:no]; }
this bug in xcode version 7.0 beta (7a120f).
i've confirmed in both objective c , swift.
it occurs in beta version, same source executes correctly in xcode 6.
very strange bug.
Comments
Post a Comment