Skip to content
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

is it possible to set maximum and minimum value? #66

Open
karthisiva opened this issue Sep 27, 2015 · 0 comments
Open

is it possible to set maximum and minimum value? #66

karthisiva opened this issue Sep 27, 2015 · 0 comments

Comments

@karthisiva
Copy link

hi,your library is awesome.I need to set maximum value and minimum value.
I am trying this code for setting 2mins as maximum value.

-(void)progressChange{
//CGFloat progress = self.largeProgressView.progress+(totalOne/100)+0.011;
CGFloat progress = self.largeProgressView.progress+(totalOne/1000)+0.0083;

NSLog(@"totttal------>%d",totalOne);

if (totalOne>0) {
    n=n+1;
    totalOne--;
    [self.largeProgressView setProgress:progress animated:YES];

}else{
    [self.timer invalidate];
    self.largeProgressView.progress=0;
    NSLog(@"%d",n);
    NSLog(@"completed");
}

}

where total one is 120 secs.

My value is static so i going with this and working fine..
If i have any other value i need to change this.is there any property for setting maximum value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant