I want to make a progressView
circle. I followed one sample code that was working with background color but now I want to use background image instead of the background color.
This is the current sample code : Sample Code
Please see this sample code and guide me on how to change background color to background image (There are two images in the project namely : background.png
& front.png
).
Thanks.
this is my code :
KKProgressTimer.m
- (void)setupParams {
self.backgroundColor = [UIColor clearColor];
self.frameWidth = 3;
self.progressColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background"]];
self.progressBackgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"front"]];
self.circleBackgroundColor = [UIColor whiteColor];
}
when run project my background don't fit in my view!!!