Skip to content

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

@karthisiva

Description

@karthisiva

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions